Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0012/0.0012, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2106/0.2106, allocations: 46.11 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 82.83 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1106, allocations: 62.43 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.008561/0.1192, allocations: 7.499 MB / 487.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004526/0.1238, allocations: 2.358 MB / 490 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009353/0.1248, allocations: 24 kB / 490 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003891/0.1287, allocations: 1.746 MB / 491.7 MB, free: 9.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002173/0.1309, allocations: 0.6904 MB / 492.4 MB, free: 8.828 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001985/0.1329, allocations: 0.755 MB / 493.2 MB, free: 8.074 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00216/0.1351, allocations: 1.229 MB / 494.4 MB, free: 6.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001577/0.1367, allocations: 0.9417 MB / 495.4 MB, free: 5.883 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007467/0.1374, allocations: 0.5136 MB / 495.9 MB, free: 5.367 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001074/0.1385, allocations: 0.6614 MB / 496.5 MB, free: 4.703 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002232/0.1387, allocations: 104 kB / 496.6 MB, free: 4.602 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008053/0.1396, allocations: 307.7 kB / 496.9 MB, free: 4.301 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001975/0.1398, allocations: 275 kB / 497.2 MB, free: 4.031 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005558/0.1403, allocations: 0.6102 MB / 497.8 MB, free: 3.418 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001544/0.1419, allocations: 1.581 MB / 499.4 MB, free: 1.832 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1419, allocations: 0 / 499.4 MB, free: 1.832 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1419, allocations: 0 / 499.4 MB, free: 1.832 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.1419, allocations: 0 / 499.4 MB, free: 1.832 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: 338 * Number of variables: 338 Notification: Performance of Generate backend data structure: time 0.004327/0.1463, allocations: 1.8 MB / 0.4895 GB, free: 15.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.1463, allocations: 12.03 kB / 0.4895 GB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000215/0.1465, allocations: 194.6 kB / 0.4897 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009848/0.1564, allocations: 1.326 MB / 0.4909 GB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008422/0.1573, allocations: 0.5646 MB / 0.4915 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.713e-05/0.1573, allocations: 103 kB / 0.4916 GB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001951/0.1575, allocations: 139.8 kB / 0.4917 GB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002031/0.1596, allocations: 1.23 MB / 0.4929 GB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.649e-05/0.1596, allocations: 8 kB / 0.4929 GB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001194/0.1597, allocations: 52 kB / 0.493 GB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.398e-05/0.1598, allocations: 35.94 kB / 0.493 GB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002305/0.1621, allocations: 1.447 MB / 0.4944 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007856/0.17, allocations: 5.831 MB / 0.5001 GB, free: 4.473 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001778/0.1718, allocations: 0.952 MB / 0.5011 GB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005677/0.1723, allocations: 370.2 kB / 0.5014 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001596/0.1725, allocations: 187.2 kB / 0.5016 GB, free: 2.918 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/0.1726, allocations: 51.5 kB / 0.5016 GB, free: 2.859 MB / 382.1 MB Notification: Performance of pre-optimization done (n=90): time 2.484e-06/0.1726, allocations: 0 / 0.5016 GB, free: 2.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=90): time 0.002176/0.1747, allocations: 1.198 MB / 0.5028 GB, free: 1.609 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.716e-05/0.1748, allocations: 64.34 kB / 0.5029 GB, free: 1.535 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009342/0.1757, allocations: 0.8246 MB / 0.5037 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.192e-05/0.1758, allocations: 49.64 kB / 0.5037 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003157/0.1761, allocations: 0.4947 MB / 0.5042 GB, free: 144 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1838/0.36, allocations: 305.2 kB / 0.5045 GB, free: 40.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003581/0.3604, allocations: 197 kB / 0.5047 GB, free: 40.58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.3605, allocations: 396.8 kB / 0.5051 GB, free: 40.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007271/0.3612, allocations: 346.4 kB / 0.5054 GB, free: 40.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008446/0.3621, allocations: 0.619 MB / 0.506 GB, free: 39.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.3634, allocations: 0.9863 MB / 0.507 GB, free: 39.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.3635, allocations: 2.75 kB / 0.507 GB, free: 39.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002121/0.3656, allocations: 1.186 MB / 0.5081 GB, free: 39.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.3656, allocations: 11.69 kB / 0.5081 GB, free: 39.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.3656, allocations: 8.625 kB / 0.5081 GB, free: 39.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002705/0.3659, allocations: 66.7 kB / 0.5082 GB, free: 39.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.3669, allocations: 263.1 kB / 0.5085 GB, free: 39.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/0.3685, allocations: 2.829 MB / 0.5112 GB, free: 36.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008687/0.3693, allocations: 156.6 kB / 0.5114 GB, free: 36.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.655e-05/0.3694, allocations: 47.69 kB / 0.5114 GB, free: 36.18 MB / 382.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: 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.0003369/0.3698, allocations: 265.2 kB / 0.5117 GB, free: 35.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.3699, allocations: 95.44 kB / 0.5118 GB, free: 35.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/0.3717, allocations: 1.107 MB / 0.5128 GB, free: 35.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.806e-06/0.3717, allocations: 9.781 kB / 0.5128 GB, free: 35.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3717, allocations: 1.188 kB / 0.5129 GB, free: 35.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.3718, allocations: 5.016 kB / 0.5129 GB, free: 35.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003324/0.3751, allocations: 3.154 MB / 0.5159 GB, free: 33.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.3751, allocations: 5.219 kB / 0.5159 GB, free: 33.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006879/0.3758, allocations: 177.8 kB / 0.5161 GB, free: 33.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001968/0.376, allocations: 66.69 kB / 0.5162 GB, free: 33.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.985e-05/0.3761, allocations: 27.05 kB / 0.5162 GB, free: 33.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001419/0.3775, allocations: 2.823 MB / 0.519 GB, free: 30.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.3775, allocations: 10.94 kB / 0.519 GB, free: 30.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002008/0.3795, allocations: 1.476 MB / 0.5204 GB, free: 29.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.3797, allocations: 198.5 kB / 0.5206 GB, free: 29.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001355/0.3799, allocations: 24.31 kB / 0.5206 GB, free: 29.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006662/0.3806, allocations: 58.62 kB / 0.5207 GB, free: 29.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.3807, allocations: 80.17 kB / 0.5208 GB, free: 29.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-05/0.3808, allocations: 31.44 kB / 0.5208 GB, free: 29.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007017/0.3815, allocations: 0.5825 MB / 0.5214 GB, free: 28.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3815, allocations: 0 / 0.5214 GB, free: 28.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001067/0.3826, allocations: 316.7 kB / 0.5217 GB, free: 28.74 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 (93): * Single equations (assignments): 91 * 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.002429/0.385, allocations: 2.076 MB / 0.5237 GB, free: 27.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002106/0.3871, allocations: 1.132 MB / 0.5248 GB, free: 26.72 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.3871, allocations: 1.094 kB / 0.5248 GB, free: 26.72 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009212/0.3881, allocations: 0.6197 MB / 0.5254 GB, free: 26.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007973/0.3889, allocations: 118.1 kB / 0.5255 GB, free: 26.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/0.3997, allocations: 9.118 MB / 0.5344 GB, free: 20.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004868/0.4002, allocations: 1.011 MB / 0.5354 GB, free: 19.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007098/0.401, allocations: 154.3 kB / 0.5355 GB, free: 19.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004312/0.4014, allocations: 387.6 kB / 0.5359 GB, free: 19.49 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4014, allocations: 0 / 0.5359 GB, free: 19.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03899/0.4404, allocations: 19.37 MB / 0.5548 GB, free: 3.656 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.415/9.856, allocations: 8.016 kB / 0.5548 GB, free: 3.648 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches