Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",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.001718/0.001718, allocations: 113.5 kB / 16.41 MB, free: 6.488 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.001886/0.001886, allocations: 190.1 kB / 17.34 MB, free: 5.762 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.496/1.496, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.196/0.196, allocations: 43.52 MB / 314.1 MB, free: 468 kB / 254.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.001522/0.001522, allocations: 71.91 kB / 441.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09499/0.09652, allocations: 57.78 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.008817/0.1054, allocations: 7.725 MB / 0.4949 GB, free: 4.555 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005003/0.1104, allocations: 2.357 MB / 0.4972 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001213/0.1117, allocations: 27.94 kB / 0.4973 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004262/0.116, allocations: 1.816 MB / 0.499 GB, free: 344 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002525/0.1186, allocations: 0.9051 MB / 0.4999 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002083/0.1206, allocations: 0.8843 MB / 0.5008 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001734/0.1224, allocations: 1.444 MB / 0.5022 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001337/0.1237, allocations: 1.005 MB / 0.5032 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006425/0.1244, allocations: 0.615 MB / 0.5038 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006945/0.1251, allocations: 0.7392 MB / 0.5045 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001457/0.1253, allocations: 116 kB / 0.5046 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006499/0.1259, allocations: 335.8 kB / 0.5049 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002157/0.1261, allocations: 306.9 kB / 0.5052 GB, free: 9.957 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005431/0.1267, allocations: 0.6685 MB / 0.5059 GB, free: 9.285 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001852/0.1286, allocations: 1.774 MB / 0.5076 GB, free: 7.504 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1286, allocations: 3.938 kB / 0.5076 GB, free: 7.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1286, allocations: 0 / 0.5076 GB, free: 7.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.1286, allocations: 0 / 0.5076 GB, free: 7.5 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 349 * Number of variables: 349 Notification: Performance of Generate backend data structure: time 0.007264/0.1359, allocations: 2.444 MB / 0.51 GB, free: 5.004 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.1359, allocations: 11.89 kB / 0.51 GB, free: 4.992 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002032/0.1361, allocations: 199 kB / 0.5102 GB, free: 4.789 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01073/0.1469, allocations: 1.499 MB / 0.5117 GB, free: 3.289 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001193/0.1481, allocations: 0.6289 MB / 0.5123 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.947e-05/0.1482, allocations: 107.1 kB / 0.5124 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001976/0.1484, allocations: 136.1 kB / 0.5125 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002526/0.1509, allocations: 1.531 MB / 0.514 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.184e-05/0.151, allocations: 7.938 kB / 0.514 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/0.1511, allocations: 56 kB / 0.5141 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.938e-05/0.1511, allocations: 32 kB / 0.5141 GB, free: 0.707 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002709/0.1538, allocations: 1.584 MB / 0.5156 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007554/0.1614, allocations: 5.524 MB / 0.521 GB, free: 9.301 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002475/0.1639, allocations: 2.366 MB / 0.5234 GB, free: 6.672 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009918/0.1649, allocations: 0.6528 MB / 0.524 GB, free: 6.016 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00014/0.1651, allocations: 102.1 kB / 0.5241 GB, free: 5.898 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.1651, allocations: 51.56 kB / 0.5241 GB, free: 5.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=129): time 3.396e-06/0.1651, allocations: 0 / 0.5241 GB, free: 5.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=129): time 0.009412/0.1746, allocations: 3.172 MB / 0.5272 GB, free: 2.637 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.357e-05/0.1747, allocations: 102.1 kB / 0.5273 GB, free: 2.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005957/0.1753, allocations: 486 kB / 0.5278 GB, free: 2.031 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.361e-05/0.1754, allocations: 49.64 kB / 0.5278 GB, free: 1.977 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003215/0.1757, allocations: 496.8 kB / 0.5283 GB, free: 1.484 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003516/0.176, allocations: 452.1 kB / 0.5287 GB, free: 1.039 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003563/0.1764, allocations: 222.8 kB / 0.529 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.1766, allocations: 382.8 kB / 0.5293 GB, free: 444 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1887/0.3653, allocations: 467 kB / 0.5298 GB, free: 38.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00121/0.3665, allocations: 0.7377 MB / 0.5305 GB, free: 38.4 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001788/0.3683, allocations: 1.259 MB / 0.5317 GB, free: 38.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/0.3683, allocations: 2.969 kB / 0.5317 GB, free: 38.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002853/0.3712, allocations: 1.675 MB / 0.5334 GB, free: 37.95 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.3712, allocations: 9.844 kB / 0.5334 GB, free: 37.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.3712, allocations: 8.109 kB / 0.5334 GB, free: 37.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001544/0.3728, allocations: 0.5238 MB / 0.5339 GB, free: 37.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008235/0.3736, allocations: 215.7 kB / 0.5341 GB, free: 37.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002037/0.3738, allocations: 61.08 kB / 0.5342 GB, free: 37.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006717/0.3745, allocations: 134.8 kB / 0.5343 GB, free: 37.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.755e-05/0.3746, allocations: 54.75 kB / 0.5343 GB, free: 37.91 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep4.y,booleanStep3.y,booleanStep2.y,booleanStep1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0003998/0.375, allocations: 277.3 kB / 0.5346 GB, free: 37.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.3752, allocations: 91.16 kB / 0.5347 GB, free: 37.75 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002768/0.378, allocations: 1.578 MB / 0.5362 GB, free: 37.28 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.898e-05/0.378, allocations: 13.53 kB / 0.5362 GB, free: 37.28 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/0.378, allocations: 1.531 kB / 0.5362 GB, free: 37.28 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.859e-05/0.378, allocations: 10.62 kB / 0.5362 GB, free: 37.28 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004639/0.3827, allocations: 2.892 MB / 0.5391 GB, free: 35.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.3827, allocations: 1.156 kB / 0.5391 GB, free: 35.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006672/0.3834, allocations: 148.5 kB / 0.5392 GB, free: 35.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001425/0.3849, allocations: 0.5142 MB / 0.5397 GB, free: 35.71 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.4e-05/0.3849, allocations: 30.41 kB / 0.5397 GB, free: 35.69 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.878e-05/0.385, allocations: 27.97 kB / 0.5398 GB, free: 35.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3851, allocations: 1.375 kB / 0.5398 GB, free: 35.67 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003879/0.3889, allocations: 2.303 MB / 0.542 GB, free: 34.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004751/0.3894, allocations: 292.9 kB / 0.5423 GB, free: 34.28 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.3896, allocations: 26.66 kB / 0.5423 GB, free: 34.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000578/0.3901, allocations: 46.36 kB / 0.5424 GB, free: 34.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/0.3903, allocations: 88.91 kB / 0.5425 GB, free: 34.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.316e-05/0.3904, allocations: 33.31 kB / 0.5425 GB, free: 34.21 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003491/0.3908, allocations: 320.8 kB / 0.5428 GB, free: 34.06 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3908, allocations: 0 / 0.5428 GB, free: 34.06 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009972/0.3918, allocations: 348.3 kB / 0.5431 GB, free: 34 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004177/0.396, allocations: 2.91 MB / 0.546 GB, free: 32.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003206/0.3992, allocations: 1.391 MB / 0.5473 GB, free: 31.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.3992, allocations: 0.9062 kB / 0.5473 GB, free: 31.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001776/0.401, allocations: 0.7652 MB / 0.5481 GB, free: 31.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007218/0.4017, allocations: 106.2 kB / 0.5482 GB, free: 31.44 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01211/0.4139, allocations: 8.672 MB / 0.5566 GB, free: 26.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005353/0.4144, allocations: 1.052 MB / 0.5577 GB, free: 25.79 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005089/0.4149, allocations: 118.3 kB / 0.5578 GB, free: 25.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003968/0.4153, allocations: 394.2 kB / 0.5582 GB, free: 25.44 MB / 414.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4154, allocations: 3.938 kB / 0.5582 GB, free: 25.44 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03739/0.4527, allocations: 22.08 MB / 0.5797 GB, free: 7.629 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.77, allocations: 12 kB / 0.5797 GB, free: 7.617 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches