Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.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.SerialConnection,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",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.001065/0.001065, allocations: 105.8 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.000962/0.000962, 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.246/1.246, 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.1925/0.1925, 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.001328/0.001328, allocations: 65.89 kB / 441.3 MB, free: 6.152 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0956/0.09694, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.0072/0.1042, allocations: 6.92 MB / 0.4942 GB, free: 5.332 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00407/0.1083, allocations: 2.19 MB / 0.4963 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005289/0.1088, allocations: 23.94 kB / 0.4963 GB, free: 3.109 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003173/0.112, allocations: 1.524 MB / 0.4978 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002057/0.1141, allocations: 0.8587 MB / 0.4986 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.1153, allocations: 0.5802 MB / 0.4992 GB, free: 136 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00121/0.1165, allocations: 1.19 MB / 0.5004 GB, free: 14.94 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001011/0.1175, allocations: 0.8159 MB / 0.5012 GB, free: 14.1 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005182/0.1181, allocations: 490 kB / 0.5016 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005392/0.1186, allocations: 0.6147 MB / 0.5022 GB, free: 13 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001121/0.1187, allocations: 100 kB / 0.5023 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000553/0.1193, allocations: 283.8 kB / 0.5026 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.1195, allocations: 251 kB / 0.5028 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004435/0.1199, allocations: 0.5674 MB / 0.5034 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001423/0.1214, allocations: 1.478 MB / 0.5048 GB, free: 10.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1214, allocations: 0 / 0.5048 GB, free: 10.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1214, allocations: 7.938 kB / 0.5048 GB, free: 10.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.164e-05/0.1214, allocations: 0 / 0.5048 GB, free: 10.32 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: 316 * Number of variables: 316 Notification: Performance of Generate backend data structure: time 0.003867/0.1253, allocations: 1.735 MB / 0.5065 GB, free: 8.527 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1253, allocations: 15.83 kB / 0.5066 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001926/0.1255, allocations: 186 kB / 0.5067 GB, free: 8.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0102/0.1357, allocations: 1.432 MB / 0.5081 GB, free: 6.887 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000951/0.1367, allocations: 0.5483 MB / 0.5087 GB, free: 6.297 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.277e-05/0.1368, allocations: 90.48 kB / 0.5088 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001792/0.137, allocations: 124 kB / 0.5089 GB, free: 6.086 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002007/0.139, allocations: 1.193 MB / 0.51 GB, free: 4.867 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.706e-05/0.139, allocations: 7.953 kB / 0.51 GB, free: 4.859 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/0.1391, allocations: 52 kB / 0.5101 GB, free: 4.809 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.203e-05/0.1392, allocations: 28 kB / 0.5101 GB, free: 4.781 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002261/0.1414, allocations: 1.435 MB / 0.5115 GB, free: 3.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006973/0.1484, allocations: 4.819 MB / 0.5162 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001818/0.1503, allocations: 1.202 MB / 0.5174 GB, free: 12.93 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005594/0.1508, allocations: 376.2 kB / 0.5178 GB, free: 12.56 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.597e-05/0.1509, allocations: 98.09 kB / 0.5179 GB, free: 12.45 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.858e-05/0.151, allocations: 43.56 kB / 0.5179 GB, free: 12.39 MB / 414.1 MB Notification: Performance of pre-optimization done (n=91): time 2.605e-06/0.151, allocations: 0 / 0.5179 GB, free: 12.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=91): time 0.002109/0.1531, allocations: 1.203 MB / 0.5191 GB, free: 11.14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.1531, allocations: 64.41 kB / 0.5191 GB, free: 11.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008786/0.154, allocations: 0.7973 MB / 0.5199 GB, free: 10.26 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.038e-05/0.1541, allocations: 45.64 kB / 0.52 GB, free: 10.21 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002979/0.1544, allocations: 492.1 kB / 0.5204 GB, free: 9.723 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002222/0.1546, allocations: 333.2 kB / 0.5207 GB, free: 9.395 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002893/0.1549, allocations: 206.8 kB / 0.5209 GB, free: 9.188 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1551, allocations: 398.7 kB / 0.5213 GB, free: 8.789 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006174/0.1557, allocations: 338.5 kB / 0.5216 GB, free: 8.457 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007912/0.1565, allocations: 0.6024 MB / 0.5222 GB, free: 7.742 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.1579, allocations: 0.9789 MB / 0.5232 GB, free: 6.656 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.1579, allocations: 4 kB / 0.5232 GB, free: 6.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.001919/0.1598, allocations: 1.174 MB / 0.5243 GB, free: 5.461 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.1598, allocations: 8 kB / 0.5243 GB, free: 5.453 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/0.1599, allocations: 12.06 kB / 0.5244 GB, free: 5.441 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002786/0.1601, allocations: 69.67 kB / 0.5244 GB, free: 5.367 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009572/0.1611, allocations: 259.6 kB / 0.5247 GB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002051/0.1632, allocations: 2.828 MB / 0.5274 GB, free: 2.004 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008156/0.164, allocations: 158.9 kB / 0.5276 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.126e-05/0.1641, allocations: 51.98 kB / 0.5276 GB, free: 1.797 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (141): * Single equations (assignments): 139 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000339/0.1644, allocations: 257.4 kB / 0.5279 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.1646, allocations: 95.39 kB / 0.528 GB, free: 1.441 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001728/0.1663, allocations: 1.107 MB / 0.5291 GB, free: 312 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.1663, allocations: 11.98 kB / 0.5291 GB, free: 300 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1663, allocations: 7.938 kB / 0.5291 GB, free: 292 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.1664, allocations: 3.984 kB / 0.5291 GB, free: 288 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2012/0.3676, allocations: 2.717 MB / 0.5317 GB, free: 37.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/0.3676, allocations: 9.375 kB / 0.5317 GB, free: 37.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007037/0.3684, allocations: 180.7 kB / 0.5319 GB, free: 37.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002074/0.3686, allocations: 62.97 kB / 0.532 GB, free: 37.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.157e-05/0.3686, allocations: 23.89 kB / 0.532 GB, free: 37.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001364/0.37, allocations: 2.827 MB / 0.5348 GB, free: 34.58 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/0.37, allocations: 11.45 kB / 0.5348 GB, free: 34.57 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001902/0.3719, allocations: 1.482 MB / 0.5362 GB, free: 34.19 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/0.3721, allocations: 205 kB / 0.5364 GB, free: 34.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.3723, allocations: 26.92 kB / 0.5364 GB, free: 34.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006217/0.3729, allocations: 54.67 kB / 0.5365 GB, free: 34.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.373, allocations: 82.75 kB / 0.5366 GB, free: 34.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.452e-05/0.3731, allocations: 37.11 kB / 0.5366 GB, free: 34.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006624/0.3738, allocations: 0.5645 MB / 0.5372 GB, free: 33.94 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3738, allocations: 0 / 0.5372 GB, free: 33.94 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000885/0.3747, allocations: 295.8 kB / 0.5374 GB, free: 33.92 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (94): * Single equations (assignments): 92 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002176/0.3768, allocations: 2.087 MB / 0.5395 GB, free: 32.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.3785, allocations: 1.095 MB / 0.5405 GB, free: 32.4 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3785, allocations: 3.688 kB / 0.5405 GB, free: 32.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007994/0.3793, allocations: 0.6254 MB / 0.5412 GB, free: 32.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007359/0.3801, allocations: 121.5 kB / 0.5413 GB, free: 31.97 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/0.3904, allocations: 8.314 MB / 0.5494 GB, free: 27.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004857/0.3909, allocations: 0.9992 MB / 0.5504 GB, free: 26.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006016/0.3915, allocations: 150.1 kB / 0.5505 GB, free: 26.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00043/0.3919, allocations: 361.9 kB / 0.5509 GB, free: 26.08 MB / 414.1 MB Notification: Performance of SimCode: time 7.61e-07/0.392, allocations: 0 / 0.5509 GB, free: 26.08 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0402/0.4322, allocations: 19.14 MB / 0.5696 GB, free: 16.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.69, allocations: 4.062 kB / 0.5696 GB, free: 16.49 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_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_SerialConnection.fmu > ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/QuasiStatic/SinglePhase/SerialConnection/SerialConnection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches