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.00109/0.00109, allocations: 104.5 kB / 16.41 MB, free: 6.512 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.001107/0.001107, allocations: 189.5 kB / 17.34 MB, free: 5.738 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.27/1.27, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.1926/0.1926, allocations: 43.52 MB / 314.1 MB, free: 448 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.001318/0.001318, allocations: 67.89 kB / 441.3 MB, free: 6.152 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09739/0.09872, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.008084/0.1068, allocations: 7.728 MB / 0.4949 GB, free: 4.527 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00417/0.111, allocations: 2.369 MB / 0.4973 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004136/0.1115, allocations: 24 kB / 0.4973 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003645/0.1151, allocations: 1.812 MB / 0.4991 GB, free: 312 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001859/0.117, allocations: 0.8973 MB / 0.4999 GB, free: 15.4 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001762/0.1188, allocations: 0.8843 MB / 0.5008 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.1201, allocations: 1.436 MB / 0.5022 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001247/0.1213, allocations: 1.009 MB / 0.5032 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005905/0.1219, allocations: 0.6189 MB / 0.5038 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006649/0.1226, allocations: 0.7392 MB / 0.5045 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.1227, allocations: 112 kB / 0.5046 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005799/0.1233, allocations: 335.8 kB / 0.5049 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002133/0.1236, allocations: 310.8 kB / 0.5052 GB, free: 9.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005489/0.1241, allocations: 0.6725 MB / 0.5059 GB, free: 9.254 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001709/0.1258, allocations: 1.774 MB / 0.5076 GB, free: 7.473 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1258, allocations: 0 / 0.5076 GB, free: 7.473 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1258, allocations: 0 / 0.5076 GB, free: 7.473 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.1259, allocations: 0 / 0.5076 GB, free: 7.473 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.007324/0.1332, allocations: 2.433 MB / 0.51 GB, free: 4.984 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.1333, allocations: 11.89 kB / 0.51 GB, free: 4.973 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000222/0.1335, allocations: 206.9 kB / 0.5102 GB, free: 4.762 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01058/0.1441, allocations: 1.499 MB / 0.5117 GB, free: 3.262 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.1451, allocations: 0.6327 MB / 0.5123 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.278e-05/0.1452, allocations: 103.1 kB / 0.5124 GB, free: 2.484 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002012/0.1454, allocations: 136.1 kB / 0.5125 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002489/0.1479, allocations: 1.523 MB / 0.514 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.861e-05/0.1479, allocations: 11.95 kB / 0.514 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000132/0.1481, allocations: 52 kB / 0.5141 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.003e-05/0.1481, allocations: 36 kB / 0.5141 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002577/0.1507, allocations: 1.58 MB / 0.5156 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00751/0.1582, allocations: 5.536 MB / 0.521 GB, free: 9.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002415/0.1607, allocations: 2.355 MB / 0.5233 GB, free: 6.652 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009835/0.1617, allocations: 0.6645 MB / 0.524 GB, free: 5.984 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001355/0.1618, allocations: 102.1 kB / 0.5241 GB, free: 5.867 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.1619, allocations: 55.56 kB / 0.5241 GB, free: 5.805 MB / 414.1 MB Notification: Performance of pre-optimization done (n=129): time 3.166e-06/0.1619, allocations: 0 / 0.5241 GB, free: 5.805 MB / 414.1 MB Notification: Performance of matching and sorting (n=129): time 0.008917/0.1708, allocations: 3.168 MB / 0.5272 GB, free: 2.605 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/0.1709, allocations: 90.11 kB / 0.5273 GB, free: 2.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005677/0.1714, allocations: 490 kB / 0.5278 GB, free: 2.008 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.438e-05/0.1715, allocations: 49.64 kB / 0.5278 GB, free: 1.953 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003067/0.1718, allocations: 0.4891 MB / 0.5283 GB, free: 1.457 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003286/0.1722, allocations: 452.1 kB / 0.5287 GB, free: 1.012 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003421/0.1725, allocations: 222.9 kB / 0.529 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.1727, allocations: 382.8 kB / 0.5293 GB, free: 416 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.19/0.3627, allocations: 467.1 kB / 0.5298 GB, free: 38.67 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/0.3638, allocations: 0.7415 MB / 0.5305 GB, free: 38.37 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/0.3654, allocations: 1.259 MB / 0.5317 GB, free: 38.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.3655, allocations: 2.281 kB / 0.5317 GB, free: 38.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002782/0.3682, allocations: 1.676 MB / 0.5334 GB, free: 37.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.3683, allocations: 8.781 kB / 0.5334 GB, free: 37.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.3683, allocations: 7.688 kB / 0.5334 GB, free: 37.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001495/0.3698, allocations: 0.5314 MB / 0.5339 GB, free: 37.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007818/0.3706, allocations: 213.7 kB / 0.5341 GB, free: 37.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002033/0.3708, allocations: 52.33 kB / 0.5341 GB, free: 37.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006741/0.3715, allocations: 131.9 kB / 0.5343 GB, free: 37.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.747e-05/0.3716, allocations: 57.52 kB / 0.5343 GB, free: 37.87 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.0004122/0.372, allocations: 279.8 kB / 0.5346 GB, free: 37.74 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.3722, allocations: 87.05 kB / 0.5347 GB, free: 37.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002591/0.3748, allocations: 1.585 MB / 0.5362 GB, free: 37.26 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.789e-05/0.3748, allocations: 13.39 kB / 0.5362 GB, free: 37.26 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.3748, allocations: 4.969 kB / 0.5362 GB, free: 37.26 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/0.3748, allocations: 6.516 kB / 0.5363 GB, free: 37.26 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004082/0.3789, allocations: 2.886 MB / 0.5391 GB, free: 35.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3789, allocations: 0 / 0.5391 GB, free: 35.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006271/0.3796, allocations: 144.6 kB / 0.5392 GB, free: 35.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001346/0.3809, allocations: 0.5228 MB / 0.5397 GB, free: 35.69 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-05/0.381, allocations: 30.95 kB / 0.5397 GB, free: 35.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.594e-05/0.3811, allocations: 23.45 kB / 0.5398 GB, free: 35.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3811, allocations: 0 / 0.5398 GB, free: 35.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003603/0.3847, allocations: 2.309 MB / 0.542 GB, free: 34.47 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003632/0.3851, allocations: 290.6 kB / 0.5423 GB, free: 34.27 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.3852, allocations: 25.3 kB / 0.5423 GB, free: 34.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005882/0.3858, allocations: 47.55 kB / 0.5424 GB, free: 34.23 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/0.386, allocations: 81.52 kB / 0.5424 GB, free: 34.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-05/0.3861, allocations: 38.25 kB / 0.5425 GB, free: 34.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003834/0.3865, allocations: 320.7 kB / 0.5428 GB, free: 34.04 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3865, allocations: 0 / 0.5428 GB, free: 34.04 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001026/0.3875, allocations: 346.3 kB / 0.5431 GB, free: 33.98 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.003879/0.3914, allocations: 2.912 MB / 0.546 GB, free: 32.24 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003152/0.3945, allocations: 1.395 MB / 0.5473 GB, free: 31.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.3946, allocations: 1.125 kB / 0.5473 GB, free: 31.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001664/0.3962, allocations: 0.764 MB / 0.5481 GB, free: 31.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006744/0.3969, allocations: 102.1 kB / 0.5482 GB, free: 31.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/0.4088, allocations: 8.672 MB / 0.5566 GB, free: 26.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005021/0.4093, allocations: 1.055 MB / 0.5577 GB, free: 25.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004937/0.4098, allocations: 116.6 kB / 0.5578 GB, free: 25.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004293/0.4102, allocations: 397.2 kB / 0.5582 GB, free: 25.42 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4102, allocations: 0 / 0.5582 GB, free: 25.42 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03523/0.4455, allocations: 22.08 MB / 0.5797 GB, free: 7.555 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.26, allocations: 15.64 kB / 0.5797 GB, free: 7.543 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