Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001819/0.001819, allocations: 114.4 kB / 17.73 MB, free: 5.355 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.00155/0.00155, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.646/1.646, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001738/0.001738, allocations: 60.28 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1293, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004808/0.1342, allocations: 2.96 MB / 377.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00146/0.1357, allocations: 0.7213 MB / 378.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001556/0.1359, allocations: 8 kB / 378.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002515/0.1361, allocations: 63.36 kB / 378.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002019/0.1363, allocations: 99.06 kB / 378.5 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000299/0.1367, allocations: 87.88 kB / 378.6 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005217/0.1372, allocations: 422 kB / 379 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002412/0.1374, allocations: 107.1 kB / 379.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002289/0.1377, allocations: 151.5 kB / 379.2 MB, free: 460 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002249/0.1379, allocations: 163.3 kB / 379.4 MB, free: 296 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.782e-05/0.138, allocations: 32 kB / 379.4 MB, free: 264 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.511e-05/0.1381, allocations: 32 kB / 379.5 MB, free: 232 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.1382, allocations: 67.77 kB / 379.5 MB, free: 164 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.224/0.3622, allocations: 184 kB / 379.7 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007438/0.363, allocations: 379.5 kB / 380.1 MB, free: 9.695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.363, allocations: 0.875 kB / 380.1 MB, free: 9.695 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.363, allocations: 0 / 380.1 MB, free: 9.695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.363, allocations: 1.562 kB / 380.1 MB, free: 9.695 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001017/0.3641, allocations: 0.6422 MB / 380.7 MB, free: 9.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.3641, allocations: 13.33 kB / 380.7 MB, free: 9.227 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.305e-05/0.3642, allocations: 63.02 kB / 380.8 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.55e-05/0.3643, allocations: 40.14 kB / 380.8 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004432/0.3647, allocations: 284.6 kB / 381.1 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.93e-05/0.3648, allocations: 23.41 kB / 381.1 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.43e-05/0.3648, allocations: 26.5 kB / 381.2 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005713/0.3654, allocations: 263.9 kB / 381.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.3654, allocations: 0 / 381.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.907e-05/0.3655, allocations: 11.06 kB / 381.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.3655, allocations: 9.469 kB / 381.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005037/0.366, allocations: 215.6 kB / 381.7 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001968/0.368, allocations: 0.9681 MB / 382.6 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006392/0.3686, allocations: 297.8 kB / 382.9 MB, free: 8.359 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002806/0.3689, allocations: 111.8 kB / 383 MB, free: 8.352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.369, allocations: 4.531 kB / 383 MB, free: 8.352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.369, allocations: 38.14 kB / 383.1 MB, free: 8.312 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.369, allocations: 0.5 kB / 383.1 MB, free: 8.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001414/0.3704, allocations: 0.5576 MB / 383.6 MB, free: 8.047 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.3705, allocations: 54.8 kB / 383.7 MB, free: 7.984 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003525/0.3708, allocations: 259.2 kB / 383.9 MB, free: 7.879 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.3709, allocations: 34.95 kB / 384 MB, free: 7.844 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.371, allocations: 185.3 kB / 384.1 MB, free: 7.719 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.345e-05/0.3711, allocations: 75.02 kB / 384.2 MB, free: 7.672 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.827e-05/0.3712, allocations: 49.06 kB / 384.3 MB, free: 7.652 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.3713, allocations: 334.7 kB / 384.6 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002211/0.3715, allocations: 74.88 kB / 384.7 MB, free: 7.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002498/0.3718, allocations: 113.5 kB / 384.8 MB, free: 7.309 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004293/0.3722, allocations: 189.9 kB / 385 MB, free: 7.277 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3722, allocations: 0 / 385 MB, free: 7.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007897/0.373, allocations: 329.8 kB / 385.3 MB, free: 7.203 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.3731, allocations: 6.219 kB / 385.3 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.3731, allocations: 1.125 kB / 385.3 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002968/0.3734, allocations: 77.23 kB / 385.4 MB, free: 7.184 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.3736, allocations: 38.52 kB / 385.4 MB, free: 7.184 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001836/0.3755, allocations: 3.041 MB / 388.5 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002171/0.3757, allocations: 32.55 kB / 388.5 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.3757, allocations: 4.406 kB / 388.5 MB, free: 4.309 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (20): * Single equations (assignments): 18 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001231/0.3758, allocations: 147.4 kB / 388.6 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.567e-05/0.3759, allocations: 33.66 kB / 388.7 MB, free: 4.152 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.617e-05/0.376, allocations: 27.05 kB / 388.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.376, allocations: 6.406 kB / 388.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/0.376, allocations: 3.094 kB / 388.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.376, allocations: 1.266 kB / 388.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.3771, allocations: 0.6905 MB / 389.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.3772, allocations: 0.5625 kB / 389.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001307/0.3773, allocations: 24.39 kB / 389.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001934/0.3775, allocations: 75.73 kB / 389.5 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.69e-05/0.3775, allocations: 8.438 kB / 389.5 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001908/0.3794, allocations: 3.039 MB / 392.5 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3795, allocations: 0 / 392.5 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006977/0.3802, allocations: 385.8 kB / 392.9 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.207e-05/0.3802, allocations: 109.1 kB / 393 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.073e-05/0.3803, allocations: 1.922 kB / 393 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002602/0.3805, allocations: 30.98 kB / 393.1 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.866e-05/0.3806, allocations: 20.02 kB / 393.1 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.3807, allocations: 16.19 kB / 393.1 MB, free: 320 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002214/0.3809, allocations: 188 kB / 393.3 MB, free: 208 kB / 318.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3809, allocations: 0 / 393.3 MB, free: 208 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004509/0.3813, allocations: 90.2 kB / 393.4 MB, free: 192 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (13): * Single equations (assignments): 11 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001199/0.3826, allocations: 0.9192 MB / 394.3 MB, free: 15.42 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009968/0.3836, allocations: 453.9 kB / 394.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.3836, allocations: 4.688 kB / 394.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005457/0.3841, allocations: 347.4 kB / 395.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004528/0.3846, allocations: 46.41 kB / 395.1 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004346/0.389, allocations: 2.712 MB / 397.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005074/0.3895, allocations: 0.7689 MB / 398.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001398/0.3896, allocations: 21.77 kB / 398.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.3898, allocations: 88.33 kB / 398.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3898, allocations: 0 / 398.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0383/0.4281, allocations: 6.422 MB / 405.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.91, allocations: 9.125 kB / 405.1 MB, free: 10.66 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches