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.001093/0.001093, allocations: 99.83 kB / 16.27 MB, free: 6 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.00118/0.00118, allocations: 184 kB / 17.19 MB, free: 5.621 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.343/1.343, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.2056/0.2056, allocations: 43.51 MB / 313.9 MB, free: 0.5312 MB / 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.001681/0.001681, allocations: 66.62 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0881/0.0898, allocations: 57.79 MB / 440.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.00691/0.09673, allocations: 6.921 MB / 447.5 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00478/0.1015, allocations: 2.19 MB / 449.7 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009956/0.1026, allocations: 23.94 kB / 449.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003684/0.1063, allocations: 1.52 MB / 451.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002593/0.109, allocations: 0.8584 MB / 452.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001439/0.1104, allocations: 0.5926 MB / 452.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00161/0.112, allocations: 1.167 MB / 453.9 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001375/0.1134, allocations: 0.8159 MB / 454.7 MB, free: 8.652 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007004/0.1141, allocations: 486.1 kB / 455.2 MB, free: 8.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008422/0.115, allocations: 0.6146 MB / 455.8 MB, free: 7.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002279/0.1152, allocations: 96 kB / 455.9 MB, free: 7.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007578/0.116, allocations: 283.8 kB / 456.2 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002433/0.1162, allocations: 255 kB / 456.4 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006907/0.1169, allocations: 0.5752 MB / 457 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001681/0.1186, allocations: 1.448 MB / 458.4 MB, free: 4.906 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1186, allocations: 0 / 458.4 MB, free: 4.906 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1187, allocations: 4 kB / 458.4 MB, free: 4.902 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.575e-05/0.1187, allocations: 0 / 458.4 MB, free: 4.902 MB / 334.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.004265/0.123, allocations: 1.709 MB / 460.2 MB, free: 3.141 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.123, allocations: 15.89 kB / 460.2 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001923/0.1232, allocations: 186.1 kB / 460.4 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01048/0.1337, allocations: 1.42 MB / 461.8 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.1347, allocations: 0.5444 MB / 462.3 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.618e-05/0.1348, allocations: 90.48 kB / 462.4 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001802/0.135, allocations: 128 kB / 462.5 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002018/0.137, allocations: 1.181 MB / 463.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.544e-05/0.1371, allocations: 3.906 kB / 463.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/0.1372, allocations: 52 kB / 463.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.585e-05/0.1372, allocations: 35.98 kB / 463.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002294/0.1395, allocations: 1.435 MB / 465.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007286/0.1468, allocations: 4.853 MB / 470.1 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001854/0.1487, allocations: 1.192 MB / 471.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005749/0.1493, allocations: 371.7 kB / 471.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001132/0.1494, allocations: 102.1 kB / 471.7 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/0.1495, allocations: 43.56 kB / 471.8 MB, free: 7.012 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.886e-06/0.1495, allocations: 3.938 kB / 471.8 MB, free: 7.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=91): time 0.002204/0.1517, allocations: 1.206 MB / 473 MB, free: 5.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.1517, allocations: 60.41 kB / 473.1 MB, free: 5.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009106/0.1527, allocations: 0.7934 MB / 473.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.203e-05/0.1527, allocations: 41.7 kB / 473.9 MB, free: 4.832 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003121/0.153, allocations: 486.7 kB / 474.4 MB, free: 4.348 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002259/0.1533, allocations: 307.5 kB / 474.7 MB, free: 4.043 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002921/0.1536, allocations: 194.8 kB / 474.9 MB, free: 3.844 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.1538, allocations: 406.7 kB / 475.3 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006258/0.1544, allocations: 338.5 kB / 475.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008316/0.1552, allocations: 0.6062 MB / 476.2 MB, free: 2.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001443/0.1567, allocations: 0.971 MB / 477.2 MB, free: 1.309 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.1567, allocations: 8 kB / 477.2 MB, free: 1.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002006/0.1587, allocations: 1.169 MB / 478.3 MB, free: 120 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.1587, allocations: 8.812 kB / 478.3 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.1588, allocations: 12 kB / 478.4 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002704/0.159, allocations: 69.61 kB / 478.4 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.1601, allocations: 259.6 kB / 478.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002102/0.1622, allocations: 2.836 MB / 481.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008341/0.163, allocations: 158.2 kB / 481.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-05/0.1631, allocations: 47.98 kB / 481.7 MB, free: 12.45 MB / 366.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.0003737/0.1635, allocations: 262.2 kB / 482 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001393/0.1636, allocations: 86.97 kB / 482.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001856/0.1655, allocations: 1.107 MB / 483.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.1655, allocations: 12 kB / 483.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1655, allocations: 0 / 483.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.1656, allocations: 11.91 kB / 483.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003572/0.1691, allocations: 2.723 MB / 485.9 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.1692, allocations: 12.16 kB / 485.9 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007765/0.1699, allocations: 179.7 kB / 486.1 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002412/0.1702, allocations: 61.67 kB / 486.2 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.68e-05/0.1703, allocations: 24 kB / 486.2 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002261/0.1725, allocations: 2.82 MB / 489 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/0.1726, allocations: 11.94 kB / 489 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002306/0.1749, allocations: 1.476 MB / 490.5 MB, free: 3.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003229/0.1752, allocations: 207.7 kB / 490.7 MB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001784/0.1754, allocations: 31.91 kB / 490.7 MB, free: 2.766 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007247/0.1761, allocations: 55.97 kB / 490.8 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.1763, allocations: 76.45 kB / 490.9 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.199e-05/0.1763, allocations: 35.98 kB / 490.9 MB, free: 2.602 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007827/0.1771, allocations: 0.5615 MB / 491.4 MB, free: 2.047 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1771, allocations: 0 / 491.4 MB, free: 2.047 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001018/0.1782, allocations: 287.5 kB / 491.7 MB, free: 1.766 MB / 366.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.002658/0.1808, allocations: 2.084 MB / 493.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002323/0.1832, allocations: 1.125 MB / 494.9 MB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.1832, allocations: 4 kB / 494.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.1842, allocations: 0.6302 MB / 495.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009482/0.1852, allocations: 124.1 kB / 495.7 MB, free: 13.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01261/0.1978, allocations: 8.928 MB / 0.4928 GB, free: 4.137 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006004/0.1984, allocations: 1 MB / 0.4938 GB, free: 3.105 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006835/0.1991, allocations: 151.6 kB / 0.4939 GB, free: 2.953 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005149/0.1996, allocations: 363.3 kB / 0.4943 GB, free: 2.598 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1997, allocations: 0 / 0.4943 GB, free: 2.598 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04882/0.2485, allocations: 18.88 MB / 0.5127 GB, free: 15.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.267/9.515, allocations: 0 / 0.5127 GB, free: 15.73 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