Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 108.4 kB / 18.4 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 186.2 kB / 19.34 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.332/1.332, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 47.94 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08435/0.08557, allocations: 46.62 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.1705/0.2561, allocations: 5.945 MB / 381.8 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003619/0.2598, allocations: 1.695 MB / 383.5 MB, free: 9.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006037/0.2604, allocations: 32.44 kB / 383.5 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005652/0.261, allocations: 248.2 kB / 383.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004863/0.2615, allocations: 220.5 kB / 384 MB, free: 9.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001135/0.2627, allocations: 0.4965 MB / 384.5 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001649/0.2643, allocations: 1.393 MB / 385.9 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000877/0.2652, allocations: 0.6185 MB / 386.5 MB, free: 8.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005559/0.2658, allocations: 486.3 kB / 387 MB, free: 7.926 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005662/0.2664, allocations: 0.4897 MB / 387.4 MB, free: 7.633 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001649/0.2665, allocations: 123.4 kB / 387.6 MB, free: 7.633 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002734/0.2668, allocations: 135 kB / 387.7 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001994/0.267, allocations: 273.4 kB / 388 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004497/0.2675, allocations: 0.6111 MB / 388.6 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001807/0.2693, allocations: 1.618 MB / 390.2 MB, free: 6.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.2693, allocations: 0 / 390.2 MB, free: 6.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.2693, allocations: 1.125 kB / 390.2 MB, free: 6.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.201e-05/0.2693, allocations: 0 / 390.2 MB, free: 6.383 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.002082/0.2714, allocations: 1.457 MB / 391.7 MB, free: 5.422 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.2715, allocations: 9.031 kB / 391.7 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002096/0.2717, allocations: 144 kB / 391.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.2729, allocations: 0.7553 MB / 392.6 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.963e-05/0.273, allocations: 92.22 kB / 392.6 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001667/0.2731, allocations: 125.5 kB / 392.8 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001969/0.2751, allocations: 1.26 MB / 394 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/0.2752, allocations: 15.53 kB / 394 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.136e-05/0.2753, allocations: 49.78 kB / 394.1 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.086e-05/0.2753, allocations: 33.06 kB / 394.1 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.2767, allocations: 0.683 MB / 394.8 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005776/0.2824, allocations: 6.78 MB / 401.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007337/0.2832, allocations: 268.3 kB / 401.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004116/0.2836, allocations: 184.8 kB / 402 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001388/0.2838, allocations: 84.09 kB / 402.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.783e-05/0.2838, allocations: 45.42 kB / 402.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.184e-06/0.2838, allocations: 0.9688 kB / 402.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.00264/0.2865, allocations: 1.392 MB / 403.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.004e-05/0.2866, allocations: 88.23 kB / 403.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008898/0.2875, allocations: 0.6576 MB / 404.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.182e-05/0.2875, allocations: 31.02 kB / 404.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005487/0.288, allocations: 0.6768 MB / 405 MB, free: 11.64 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.2882, allocations: 121.4 kB / 405.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001926/0.2884, allocations: 150.9 kB / 405.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000223/0.2886, allocations: 386.4 kB / 405.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003/0.2889, allocations: 147.3 kB / 405.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006255/0.2895, allocations: 0.5484 MB / 406.3 MB, free: 10.46 MB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.001102/0.2906, allocations: 0.9504 MB / 407.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.2907, allocations: 4.188 kB / 407.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001287/0.292, allocations: 0.7961 MB / 408.1 MB, free: 9.164 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.292, allocations: 11.66 kB / 408.1 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.058e-05/0.292, allocations: 15.16 kB / 408.1 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002615/0.2923, allocations: 86.78 kB / 408.2 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006027/0.2929, allocations: 181.1 kB / 408.4 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002573/0.2955, allocations: 3.327 MB / 411.7 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003904/0.2959, allocations: 30.25 kB / 411.7 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.264e-05/0.2959, allocations: 39.88 kB / 411.8 MB, free: 5.758 MB / 334.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003576/0.2963, allocations: 281.1 kB / 412 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.2964, allocations: 74.41 kB / 412.1 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000114/0.2965, allocations: 75.44 kB / 412.2 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2966, allocations: 0 / 412.2 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.2966, allocations: 1.188 kB / 412.2 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/0.2967, allocations: 137.5 kB / 412.3 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.931e-05/0.2968, allocations: 6.312 kB / 412.3 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.297, allocations: 17.08 kB / 412.3 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.21e-05/0.2971, allocations: 30.84 kB / 412.4 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001023/0.2982, allocations: 0.512 MB / 412.9 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008445/0.299, allocations: 0.6709 MB / 413.6 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002067/0.2992, allocations: 109.1 kB / 413.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005426/0.2998, allocations: 439 kB / 414.1 MB, free: 4.117 MB / 334.1 MB Notification: Performance of Backend: time 5.51e-07/0.2998, allocations: 0 / 414.1 MB, free: 4.117 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001375/0.3012, allocations: 0.6619 MB / 414.8 MB, free: 3.652 MB / 334.1 MB Notification: Performance of SimCode: time 0.00302/0.3042, allocations: 2.342 MB / 417.1 MB, free: 1.965 MB / 334.1 MB Notification: Performance of Templates: time 0.01421/0.3184, allocations: 6.195 MB / 423.3 MB, free: 14.47 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches