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.00125/0.001251, allocations: 105.8 kB / 16.41 MB, free: 6.508 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.001454/0.001454, 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.416/1.416, 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.2119/0.2119, allocations: 43.52 MB / 314.1 MB, free: 456 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.002041/0.002041, allocations: 73.45 kB / 441.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1074, allocations: 57.78 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.009295/0.1167, allocations: 7.732 MB / 0.4949 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004594/0.1213, allocations: 2.365 MB / 0.4973 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005476/0.1219, allocations: 27.94 kB / 0.4973 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003929/0.1259, allocations: 1.808 MB / 0.4991 GB, free: 312 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002225/0.1281, allocations: 0.9012 MB / 0.4999 GB, free: 15.4 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001973/0.1301, allocations: 0.8844 MB / 0.5008 GB, free: 14.51 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001779/0.1319, allocations: 1.436 MB / 0.5022 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001445/0.1334, allocations: 1.009 MB / 0.5032 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007419/0.1341, allocations: 0.6072 MB / 0.5038 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008514/0.135, allocations: 0.747 MB / 0.5045 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001645/0.1351, allocations: 116 kB / 0.5046 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007402/0.1359, allocations: 335.8 kB / 0.5049 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002594/0.1362, allocations: 302.9 kB / 0.5052 GB, free: 9.934 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006439/0.1368, allocations: 0.6685 MB / 0.5059 GB, free: 9.262 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002057/0.1389, allocations: 1.778 MB / 0.5076 GB, free: 7.477 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1389, allocations: 3.938 kB / 0.5076 GB, free: 7.473 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1389, allocations: 3.938 kB / 0.5076 GB, free: 7.469 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.773e-05/0.1389, allocations: 0 / 0.5076 GB, free: 7.469 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.0076/0.1465, allocations: 2.429 MB / 0.51 GB, free: 4.984 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.1466, allocations: 11.89 kB / 0.51 GB, free: 4.973 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002441/0.1468, allocations: 202.9 kB / 0.5102 GB, free: 4.766 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01061/0.1575, allocations: 1.502 MB / 0.5117 GB, free: 3.262 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001293/0.1588, allocations: 0.6328 MB / 0.5123 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.1589, allocations: 99.09 kB / 0.5124 GB, free: 2.488 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002467/0.1591, allocations: 136.1 kB / 0.5125 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002759/0.1619, allocations: 1.531 MB / 0.514 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.231e-05/0.162, allocations: 7.953 kB / 0.514 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001336/0.1621, allocations: 56 kB / 0.5141 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.259e-05/0.1621, allocations: 32 kB / 0.5141 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002852/0.165, allocations: 1.591 MB / 0.5156 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008206/0.1732, allocations: 5.517 MB / 0.521 GB, free: 9.277 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002846/0.1761, allocations: 2.37 MB / 0.5233 GB, free: 6.645 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001102/0.1772, allocations: 0.6567 MB / 0.524 GB, free: 5.984 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001485/0.1774, allocations: 102.1 kB / 0.5241 GB, free: 5.867 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.976e-05/0.1774, allocations: 51.56 kB / 0.5241 GB, free: 5.809 MB / 414.1 MB Notification: Performance of pre-optimization done (n=129): time 3.467e-06/0.1774, allocations: 0 / 0.5241 GB, free: 5.809 MB / 414.1 MB Notification: Performance of matching and sorting (n=129): time 0.009622/0.1871, allocations: 3.172 MB / 0.5272 GB, free: 2.605 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.1871, allocations: 94.08 kB / 0.5273 GB, free: 2.496 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005969/0.1877, allocations: 489.9 kB / 0.5278 GB, free: 2.004 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.931e-05/0.1878, allocations: 45.7 kB / 0.5278 GB, free: 1.953 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003541/0.1882, allocations: 0.4929 MB / 0.5283 GB, free: 1.453 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003645/0.1886, allocations: 444.2 kB / 0.5287 GB, free: 1.016 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003635/0.1889, allocations: 226.8 kB / 0.529 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.1891, allocations: 382.8 kB / 0.5293 GB, free: 416 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1855/0.3747, allocations: 467.7 kB / 0.5298 GB, free: 38.64 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001174/0.3759, allocations: 0.736 MB / 0.5305 GB, free: 38.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001661/0.3776, allocations: 1.264 MB / 0.5317 GB, free: 38.03 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.3776, allocations: 2.594 kB / 0.5317 GB, free: 38.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.002829/0.3804, allocations: 1.672 MB / 0.5334 GB, free: 37.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.3804, allocations: 8.094 kB / 0.5334 GB, free: 37.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.3805, allocations: 8.531 kB / 0.5334 GB, free: 37.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001521/0.382, allocations: 0.5325 MB / 0.5339 GB, free: 37.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007898/0.3828, allocations: 212.2 kB / 0.5341 GB, free: 37.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002084/0.383, allocations: 57.97 kB / 0.5341 GB, free: 37.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006852/0.3837, allocations: 134.3 kB / 0.5343 GB, free: 37.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.011e-05/0.3838, allocations: 56.7 kB / 0.5343 GB, free: 37.85 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.0004/0.3842, allocations: 272.8 kB / 0.5346 GB, free: 37.72 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.3844, allocations: 89.05 kB / 0.5347 GB, free: 37.7 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002609/0.387, allocations: 1.581 MB / 0.5362 GB, free: 37.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.939e-05/0.387, allocations: 13.97 kB / 0.5362 GB, free: 37.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.387, allocations: 1.125 kB / 0.5362 GB, free: 37.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.676e-05/0.3871, allocations: 6.328 kB / 0.5362 GB, free: 37.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004262/0.3913, allocations: 2.893 MB / 0.5391 GB, free: 35.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.3913, allocations: 1.25 kB / 0.5391 GB, free: 35.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006124/0.392, allocations: 150.8 kB / 0.5392 GB, free: 35.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001396/0.3934, allocations: 0.5203 MB / 0.5397 GB, free: 35.67 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.117e-05/0.3935, allocations: 25.92 kB / 0.5397 GB, free: 35.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.946e-05/0.3935, allocations: 26.72 kB / 0.5398 GB, free: 35.64 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3936, allocations: 1.219 kB / 0.5398 GB, free: 35.64 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003629/0.3972, allocations: 2.304 MB / 0.542 GB, free: 34.45 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003731/0.3976, allocations: 291.8 kB / 0.5423 GB, free: 34.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.3977, allocations: 25.09 kB / 0.5423 GB, free: 34.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005817/0.3983, allocations: 44.36 kB / 0.5424 GB, free: 34.21 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.3985, allocations: 84.41 kB / 0.5424 GB, free: 34.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-05/0.3986, allocations: 35.59 kB / 0.5425 GB, free: 34.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003613/0.3989, allocations: 319.5 kB / 0.5428 GB, free: 34.03 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3989, allocations: 0 / 0.5428 GB, free: 34.03 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009039/0.3998, allocations: 352.5 kB / 0.5431 GB, free: 33.96 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.003714/0.4036, allocations: 2.913 MB / 0.546 GB, free: 32.22 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002945/0.4065, allocations: 1.392 MB / 0.5473 GB, free: 31.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4065, allocations: 0 / 0.5473 GB, free: 31.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001692/0.4082, allocations: 0.7659 MB / 0.5481 GB, free: 31.46 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006653/0.4089, allocations: 108.9 kB / 0.5482 GB, free: 31.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/0.4208, allocations: 8.666 MB / 0.5566 GB, free: 26.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004595/0.4213, allocations: 1.055 MB / 0.5577 GB, free: 25.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000442/0.4217, allocations: 112.8 kB / 0.5578 GB, free: 25.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004/0.4221, allocations: 397.6 kB / 0.5582 GB, free: 25.41 MB / 414.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4221, allocations: 0 / 0.5582 GB, free: 25.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0455/0.4676, allocations: 22.09 MB / 0.5797 GB, free: 7.512 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.89, allocations: 11.52 kB / 0.5797 GB, free: 7.504 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