Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_4_0_0_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.001159/0.001159, allocations: 104.1 kB / 17.63 MB, free: 5.48 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.001224/0.001224, allocations: 192 kB / 18.56 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2154/0.2154, allocations: 44.18 MB / 336.6 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 64.55 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1052, allocations: 60.83 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.007897/0.1131, allocations: 6.93 MB / 476.3 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003714/0.1168, allocations: 2.198 MB / 478.5 MB, free: 5.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004129/0.1173, allocations: 20 kB / 478.5 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003094/0.1204, allocations: 1.527 MB / 480 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001752/0.1222, allocations: 0.8408 MB / 480.9 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.1233, allocations: 0.5715 MB / 481.4 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001101/0.1244, allocations: 1.148 MB / 482.6 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001047/0.1255, allocations: 0.8197 MB / 483.4 MB, free: 132 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005155/0.126, allocations: 466.2 kB / 483.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005685/0.1266, allocations: 0.599 MB / 484.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001215/0.1267, allocations: 92 kB / 484.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005772/0.1273, allocations: 287.8 kB / 484.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001744/0.1275, allocations: 251 kB / 485.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004515/0.128, allocations: 0.5519 MB / 485.6 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001331/0.1293, allocations: 1.44 MB / 487.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1293, allocations: 3.984 kB / 487.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1293, allocations: 0 / 487.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.1293, allocations: 0 / 487.1 MB, free: 12.45 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.003858/0.1332, allocations: 1.681 MB / 488.8 MB, free: 10.72 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.1333, allocations: 12.03 kB / 488.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001903/0.1335, allocations: 177.8 kB / 488.9 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00979/0.1433, allocations: 1.323 MB / 490.3 MB, free: 9.199 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008005/0.1441, allocations: 0.5293 MB / 490.8 MB, free: 8.625 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.286e-05/0.1441, allocations: 90.41 kB / 490.9 MB, free: 8.535 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000189/0.1443, allocations: 119.9 kB / 491 MB, free: 8.418 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00195/0.1463, allocations: 1.153 MB / 492.2 MB, free: 7.238 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.229e-05/0.1463, allocations: 0 / 492.2 MB, free: 7.238 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.1465, allocations: 52 kB / 492.2 MB, free: 7.188 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.344e-05/0.1465, allocations: 28 kB / 492.2 MB, free: 7.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002179/0.1487, allocations: 1.372 MB / 493.6 MB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006985/0.1557, allocations: 4.672 MB / 498.3 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001694/0.1574, allocations: 0.9302 MB / 499.2 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005736/0.158, allocations: 367.7 kB / 499.6 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001041/0.1581, allocations: 102 kB / 499.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.1581, allocations: 47.56 kB / 499.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of pre-optimization done (n=89): time 2.425e-06/0.1582, allocations: 4 kB / 499.7 MB, free: 15.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=89): time 0.002285/0.1604, allocations: 1.179 MB / 0.4892 GB, free: 14.1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.575e-05/0.1605, allocations: 64.41 kB / 0.4892 GB, free: 14.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009319/0.1614, allocations: 0.7854 MB / 0.49 GB, free: 13.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.544e-05/0.1615, allocations: 41.7 kB / 0.49 GB, free: 13.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003161/0.1618, allocations: 463 kB / 0.4905 GB, free: 12.72 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002119/0.162, allocations: 303.5 kB / 0.4908 GB, free: 12.42 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002959/0.1624, allocations: 182.9 kB / 0.4909 GB, free: 12.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.1626, allocations: 390.7 kB / 0.4913 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000612/0.1632, allocations: 346.5 kB / 0.4916 GB, free: 11.51 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007652/0.1639, allocations: 0.5622 MB / 0.4922 GB, free: 10.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001358/0.1653, allocations: 0.9231 MB / 0.4931 GB, free: 9.836 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.1653, allocations: 0 / 0.4931 GB, free: 9.836 MB / 382.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002039/0.1674, allocations: 1.131 MB / 0.4942 GB, free: 8.691 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.143e-05/0.1674, allocations: 8 kB / 0.4942 GB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.1674, allocations: 8 kB / 0.4942 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002882/0.1677, allocations: 61.69 kB / 0.4943 GB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009795/0.1687, allocations: 247.6 kB / 0.4945 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002186/0.1709, allocations: 2.832 MB / 0.4973 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007972/0.1717, allocations: 146.3 kB / 0.4974 GB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-05/0.1718, allocations: 40 kB / 0.4974 GB, free: 5.074 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (133): * Single equations (assignments): 131 * 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.0003475/0.1722, allocations: 245.6 kB / 0.4977 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.1723, allocations: 90.95 kB / 0.4978 GB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/0.1742, allocations: 1.099 MB / 0.4988 GB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.1742, allocations: 8 kB / 0.4988 GB, free: 3.594 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1742, allocations: 4 kB / 0.4988 GB, free: 3.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.1742, allocations: 3.984 kB / 0.4989 GB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003396/0.1776, allocations: 2.696 MB / 0.5015 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.1776, allocations: 8 kB / 0.5015 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007059/0.1783, allocations: 179.7 kB / 0.5017 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001972/0.1785, allocations: 65.55 kB / 0.5017 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.778e-05/0.1786, allocations: 32.17 kB / 0.5018 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1934/0.372, allocations: 2.813 MB / 0.5045 GB, free: 45.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.003e-05/0.372, allocations: 6.375 kB / 0.5045 GB, free: 45.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002454/0.3745, allocations: 1.458 MB / 0.5059 GB, free: 44.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003047/0.3748, allocations: 198.1 kB / 0.5061 GB, free: 44.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001352/0.375, allocations: 23.36 kB / 0.5061 GB, free: 44.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006809/0.3756, allocations: 52.84 kB / 0.5062 GB, free: 44.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001798/0.3758, allocations: 83.75 kB / 0.5063 GB, free: 44.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.513e-05/0.3759, allocations: 36 kB / 0.5063 GB, free: 44.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008002/0.3767, allocations: 0.5536 MB / 0.5069 GB, free: 44.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.3767, allocations: 0 / 0.5069 GB, free: 44.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001064/0.3778, allocations: 291 kB / 0.5071 GB, free: 44.59 MB / 382.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 (92): * Single equations (assignments): 90 * 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.002652/0.3805, allocations: 2.067 MB / 0.5091 GB, free: 43.19 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002399/0.3829, allocations: 1.094 MB / 0.5102 GB, free: 42.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.3829, allocations: 1.781 kB / 0.5102 GB, free: 42.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009047/0.3838, allocations: 0.6172 MB / 0.5108 GB, free: 42.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008676/0.3847, allocations: 119.5 kB / 0.5109 GB, free: 42.24 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01156/0.3962, allocations: 8.671 MB / 0.5194 GB, free: 36.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005255/0.3968, allocations: 0.9928 MB / 0.5204 GB, free: 36.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007155/0.3975, allocations: 148.6 kB / 0.5205 GB, free: 36.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004233/0.398, allocations: 357.6 kB / 0.5209 GB, free: 35.82 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.398, allocations: 0 / 0.5209 GB, free: 35.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0504/0.4484, allocations: 18.59 MB / 0.539 GB, free: 24.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.418/9.867, allocations: 9.672 kB / 0.539 GB, free: 24.54 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/SerialConnection/SerialConnection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches