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.001235/0.001235, allocations: 108 kB / 16.41 MB, free: 6.484 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.001308/0.001308, allocations: 188.1 kB / 17.34 MB, free: 5.762 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.335/1.335, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2079/0.2079, allocations: 43.54 MB / 314.1 MB, free: 460 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.001957/0.001957, allocations: 71.88 kB / 441.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1072, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.008493/0.1158, allocations: 6.916 MB / 0.4942 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003853/0.1196, allocations: 2.202 MB / 0.4963 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003233/0.12, allocations: 23.94 kB / 0.4963 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003278/0.1233, allocations: 1.524 MB / 0.4978 GB, free: 1.605 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001778/0.1251, allocations: 0.847 MB / 0.4986 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001183/0.1262, allocations: 0.588 MB / 0.4992 GB, free: 168 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001255/0.1275, allocations: 1.183 MB / 0.5004 GB, free: 14.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001175/0.1287, allocations: 0.8237 MB / 0.5012 GB, free: 14.13 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005659/0.1293, allocations: 486.1 kB / 0.5016 GB, free: 13.65 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006878/0.13, allocations: 0.6146 MB / 0.5022 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001456/0.1301, allocations: 96 kB / 0.5023 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005689/0.1307, allocations: 287.8 kB / 0.5026 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002197/0.1309, allocations: 258.9 kB / 0.5029 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005522/0.1315, allocations: 0.5674 MB / 0.5034 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001626/0.1331, allocations: 1.478 MB / 0.5048 GB, free: 10.35 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1331, allocations: 0 / 0.5048 GB, free: 10.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1331, allocations: 0 / 0.5048 GB, free: 10.35 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.664e-05/0.1332, allocations: 0 / 0.5048 GB, free: 10.35 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.004048/0.1372, allocations: 1.739 MB / 0.5065 GB, free: 8.559 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.1373, allocations: 11.89 kB / 0.5066 GB, free: 8.547 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002139/0.1375, allocations: 182.1 kB / 0.5067 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01028/0.1478, allocations: 1.432 MB / 0.5081 GB, free: 6.926 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008546/0.1486, allocations: 0.5483 MB / 0.5087 GB, free: 6.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.976e-05/0.1487, allocations: 94.48 kB / 0.5088 GB, free: 6.242 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001897/0.1489, allocations: 128 kB / 0.5089 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002104/0.151, allocations: 1.181 MB / 0.51 GB, free: 4.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.176e-05/0.1511, allocations: 7.953 kB / 0.51 GB, free: 4.902 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001153/0.1512, allocations: 48 kB / 0.5101 GB, free: 4.855 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.022e-05/0.1512, allocations: 32 kB / 0.5101 GB, free: 4.824 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002482/0.1537, allocations: 1.439 MB / 0.5115 GB, free: 3.379 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007523/0.1613, allocations: 4.823 MB / 0.5162 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00206/0.1633, allocations: 1.206 MB / 0.5174 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006225/0.164, allocations: 376.2 kB / 0.5178 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001339/0.1641, allocations: 98.08 kB / 0.5179 GB, free: 12.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.1642, allocations: 47.55 kB / 0.5179 GB, free: 12.42 MB / 414.1 MB Notification: Performance of pre-optimization done (n=91): time 4.248e-06/0.1642, allocations: 0 / 0.5179 GB, free: 12.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=91): time 0.002298/0.1665, allocations: 1.207 MB / 0.5191 GB, free: 11.17 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.228e-05/0.1665, allocations: 60.41 kB / 0.5191 GB, free: 11.1 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/0.1676, allocations: 0.8012 MB / 0.5199 GB, free: 10.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.545e-05/0.1676, allocations: 41.7 kB / 0.52 GB, free: 10.24 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003906/0.168, allocations: 496.1 kB / 0.5204 GB, free: 9.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002748/0.1683, allocations: 329.2 kB / 0.5208 GB, free: 9.426 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003211/0.1686, allocations: 198.8 kB / 0.5209 GB, free: 9.227 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002268/0.1689, allocations: 398.7 kB / 0.5213 GB, free: 8.828 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006589/0.1695, allocations: 346.5 kB / 0.5217 GB, free: 8.488 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000882/0.1704, allocations: 0.6062 MB / 0.5222 GB, free: 7.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/0.1719, allocations: 0.9788 MB / 0.5232 GB, free: 6.684 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.172, allocations: 0 / 0.5232 GB, free: 6.684 MB / 414.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002112/0.1741, allocations: 1.178 MB / 0.5244 GB, free: 5.488 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.1741, allocations: 8 kB / 0.5244 GB, free: 5.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.1741, allocations: 12.03 kB / 0.5244 GB, free: 5.469 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002786/0.1744, allocations: 65.67 kB / 0.5244 GB, free: 5.398 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009946/0.1754, allocations: 255.6 kB / 0.5247 GB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002347/0.1778, allocations: 2.828 MB / 0.5274 GB, free: 2.039 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008115/0.1786, allocations: 166.8 kB / 0.5276 GB, free: 1.875 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.667e-05/0.1787, allocations: 44 kB / 0.5276 GB, free: 1.832 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.000355/0.179, allocations: 257.4 kB / 0.5279 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/0.1792, allocations: 95.39 kB / 0.528 GB, free: 1.477 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001921/0.1811, allocations: 1.111 MB / 0.5291 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.1811, allocations: 8 kB / 0.5291 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.1812, allocations: 3.938 kB / 0.5291 GB, free: 332 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.1812, allocations: 3.984 kB / 0.5291 GB, free: 328 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1868/0.368, allocations: 2.717 MB / 0.5317 GB, free: 37.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.368, allocations: 5.719 kB / 0.5317 GB, free: 37.67 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007029/0.3687, allocations: 186.5 kB / 0.5319 GB, free: 37.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002033/0.3689, allocations: 62.19 kB / 0.532 GB, free: 37.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.047e-05/0.369, allocations: 23.05 kB / 0.532 GB, free: 37.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001373/0.3704, allocations: 2.824 MB / 0.5348 GB, free: 34.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/0.3704, allocations: 12.38 kB / 0.5348 GB, free: 34.97 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002016/0.3724, allocations: 1.481 MB / 0.5362 GB, free: 34.59 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001992/0.3726, allocations: 205.7 kB / 0.5364 GB, free: 34.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.3728, allocations: 23.52 kB / 0.5364 GB, free: 34.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006264/0.3734, allocations: 59 kB / 0.5365 GB, free: 34.45 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.3735, allocations: 82.7 kB / 0.5366 GB, free: 34.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-05/0.3736, allocations: 35.17 kB / 0.5366 GB, free: 34.44 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006831/0.3743, allocations: 0.5628 MB / 0.5371 GB, free: 34.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3743, allocations: 0 / 0.5371 GB, free: 34.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000875/0.3752, allocations: 297.7 kB / 0.5374 GB, free: 34.32 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.002247/0.3774, allocations: 2.093 MB / 0.5395 GB, free: 33.08 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.3791, allocations: 1.1 MB / 0.5405 GB, free: 32.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.3791, allocations: 4.922 kB / 0.5406 GB, free: 32.54 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007701/0.3799, allocations: 0.6236 MB / 0.5412 GB, free: 32.17 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006958/0.3806, allocations: 114.1 kB / 0.5413 GB, free: 32.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01038/0.391, allocations: 8.322 MB / 0.5494 GB, free: 27.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004618/0.3915, allocations: 0.9961 MB / 0.5504 GB, free: 26.53 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005626/0.3921, allocations: 155.8 kB / 0.5505 GB, free: 26.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004388/0.3925, allocations: 365.8 kB / 0.5509 GB, free: 26.22 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3925, allocations: 0 / 0.5509 GB, free: 26.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0465/0.439, allocations: 19.14 MB / 0.5696 GB, free: 16.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.45, allocations: 0 / 0.5696 GB, free: 16.64 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