Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.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.Ideal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",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.001094/0.001094, allocations: 107.7 kB / 17.21 MB, free: 6.27 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.001191/0.001191, allocations: 194 kB / 18.12 MB, free: 5.363 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.356/1.356, allocations: 222.9 MB / 241.8 MB, free: 15.55 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.2042/0.2042, allocations: 44.18 MB / 336.1 MB, free: 2.996 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 64.73 kB / 407.8 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1128, allocations: 60.81 MB / 468.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.009782/0.1226, allocations: 7.668 MB / 476.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004703/0.1274, allocations: 2.357 MB / 478.6 MB, free: 4.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001093/0.1285, allocations: 28 kB / 478.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003889/0.1324, allocations: 1.707 MB / 480.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00234/0.1348, allocations: 0.7863 MB / 481.2 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002111/0.1369, allocations: 0.8352 MB / 482 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002003/0.1389, allocations: 1.334 MB / 483.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001751/0.1407, allocations: 0.921 MB / 484.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009004/0.1416, allocations: 0.5604 MB / 484.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.1427, allocations: 0.708 MB / 485.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003452/0.143, allocations: 84 kB / 485.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009597/0.144, allocations: 295.8 kB / 485.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003818/0.1444, allocations: 270.9 kB / 486.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009707/0.1454, allocations: 0.6218 MB / 486.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002079/0.1474, allocations: 1.697 MB / 488.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1475, allocations: 0 / 488.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1475, allocations: 3.938 kB / 488.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.19e-05/0.1475, allocations: 4 kB / 488.5 MB, free: 10.79 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: 339 * Number of variables: 339 Notification: Performance of Generate backend data structure: time 0.0082/0.1557, allocations: 2.369 MB / 490.9 MB, free: 8.367 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.1558, allocations: 8.031 kB / 490.9 MB, free: 8.359 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003772/0.1562, allocations: 198.7 kB / 491.1 MB, free: 8.156 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01014/0.1663, allocations: 1.385 MB / 492.4 MB, free: 6.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.1675, allocations: 0.6129 MB / 493.1 MB, free: 6.117 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.1677, allocations: 99.02 kB / 493.2 MB, free: 6.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003725/0.168, allocations: 132.1 kB / 493.3 MB, free: 5.891 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003313/0.1714, allocations: 1.479 MB / 494.8 MB, free: 4.367 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.314e-05/0.1714, allocations: 11.91 kB / 494.8 MB, free: 4.355 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001648/0.1716, allocations: 52 kB / 494.8 MB, free: 4.305 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.81e-05/0.1717, allocations: 36 kB / 494.9 MB, free: 4.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002982/0.1746, allocations: 1.505 MB / 496.4 MB, free: 2.758 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008427/0.1831, allocations: 5.389 MB / 0.49 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002414/0.1855, allocations: 2.178 MB / 0.4921 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001026/0.1866, allocations: 0.6475 MB / 0.4928 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001402/0.1867, allocations: 106.1 kB / 0.4929 GB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.1868, allocations: 43.56 kB / 0.4929 GB, free: 9.859 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 2.605e-06/0.1868, allocations: 0 / 0.4929 GB, free: 9.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.008713/0.1955, allocations: 3.102 MB / 0.4959 GB, free: 6.723 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.1956, allocations: 94.11 kB / 0.496 GB, free: 6.613 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005715/0.1961, allocations: 461.9 kB / 0.4965 GB, free: 6.148 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.117e-05/0.1962, allocations: 45.7 kB / 0.4965 GB, free: 6.098 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002872/0.1965, allocations: 463.5 kB / 0.4969 GB, free: 5.637 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003396/0.1969, allocations: 425.7 kB / 0.4973 GB, free: 5.215 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003499/0.1972, allocations: 218.8 kB / 0.4976 GB, free: 4.996 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.1974, allocations: 378.8 kB / 0.4979 GB, free: 4.617 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008931/0.1983, allocations: 462.4 kB / 0.4984 GB, free: 4.164 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001025/0.1993, allocations: 0.6918 MB / 0.499 GB, free: 3.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00195/0.2013, allocations: 1.202 MB / 0.5002 GB, free: 2.086 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.806e-06/0.2013, allocations: 4 kB / 0.5002 GB, free: 2.082 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.002944/0.2042, allocations: 1.59 MB / 0.5018 GB, free: 496 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.2043, allocations: 8 kB / 0.5018 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.2043, allocations: 4 kB / 0.5018 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1899/0.3942, allocations: 0.529 MB / 0.5023 GB, free: 48.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.3953, allocations: 197.2 kB / 0.5025 GB, free: 48.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003013/0.3956, allocations: 52.44 kB / 0.5025 GB, free: 48.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00098/0.3966, allocations: 126.2 kB / 0.5026 GB, free: 48.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002025/0.3968, allocations: 49.66 kB / 0.5027 GB, free: 48.04 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep4.y,booleanStep3.y,booleanStep2.y,booleanStep1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0005925/0.3974, allocations: 273 kB / 0.503 GB, free: 47.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002447/0.3977, allocations: 79.83 kB / 0.503 GB, free: 47.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003408/0.4011, allocations: 1.569 MB / 0.5046 GB, free: 47.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-05/0.4011, allocations: 13.02 kB / 0.5046 GB, free: 47.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.4011, allocations: 0.875 kB / 0.5046 GB, free: 47.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.036e-05/0.4012, allocations: 8.016 kB / 0.5046 GB, free: 47.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004832/0.406, allocations: 2.879 MB / 0.5074 GB, free: 46.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.406, allocations: 0.6094 kB / 0.5074 GB, free: 46.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000642/0.4067, allocations: 144.9 kB / 0.5075 GB, free: 46.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001584/0.4083, allocations: 0.5167 MB / 0.508 GB, free: 46.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.119e-05/0.4084, allocations: 28.16 kB / 0.5081 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003047/0.4087, allocations: 66.23 kB / 0.5081 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4087, allocations: 2.062 kB / 0.5081 GB, free: 46.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003873/0.4126, allocations: 2.344 MB / 0.5104 GB, free: 45.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004295/0.413, allocations: 280.4 kB / 0.5107 GB, free: 45.01 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001592/0.4132, allocations: 20.75 kB / 0.5107 GB, free: 45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006601/0.4139, allocations: 48.23 kB / 0.5108 GB, free: 44.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000191/0.4141, allocations: 79.23 kB / 0.5108 GB, free: 44.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.641e-05/0.4141, allocations: 34.77 kB / 0.5109 GB, free: 44.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003708/0.4145, allocations: 309.3 kB / 0.5112 GB, free: 44.81 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4145, allocations: 0 / 0.5112 GB, free: 44.81 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001008/0.4155, allocations: 352.2 kB / 0.5115 GB, free: 44.71 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004327/0.4199, allocations: 2.926 MB / 0.5144 GB, free: 42.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002886/0.4228, allocations: 1.367 MB / 0.5157 GB, free: 42.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.4228, allocations: 0 / 0.5157 GB, free: 42.51 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001698/0.4245, allocations: 0.7653 MB / 0.5164 GB, free: 42.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000743/0.4253, allocations: 98.19 kB / 0.5165 GB, free: 42.19 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01176/0.437, allocations: 9.125 MB / 0.5254 GB, free: 36.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/0.4375, allocations: 1.043 MB / 0.5265 GB, free: 35.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005179/0.438, allocations: 110.9 kB / 0.5266 GB, free: 35.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003956/0.4384, allocations: 384.6 kB / 0.5269 GB, free: 35.61 MB / 382.1 MB Notification: Performance of SimCode: time 6.52e-07/0.4384, allocations: 0 / 0.5269 GB, free: 35.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0336/0.472, allocations: 20.4 MB / 0.5469 GB, free: 17.97 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000152/0.4722, allocations: 244.8 kB / 0.5471 GB, free: 17.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.217/2.689, allocations: 7.75 kB / 0.5471 GB, free: 17.7 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches