Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001902/0.001902, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002224/0.002224, allocations: 214 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2261/0.2261, allocations: 46.92 MB / 360.8 MB, free: 4.188 MB / 286.1 MB " [Timeout remaining time 180] 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.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002341/0.002341, allocations: 75.88 kB / 0.4962 GB, free: 7.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3187, allocations: 66.08 MB / 0.5607 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.009706/0.3284, allocations: 7.799 MB / 0.5684 GB, free: 12.46 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006038/0.3345, allocations: 2.451 MB / 0.5707 GB, free: 10 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001499/0.336, allocations: 31.88 kB / 0.5708 GB, free: 9.973 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004685/0.3407, allocations: 1.823 MB / 0.5726 GB, free: 8.145 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002488/0.3431, allocations: 0.7175 MB / 0.5733 GB, free: 7.426 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002502/0.3456, allocations: 1.08 MB / 0.5743 GB, free: 6.355 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002012/0.3477, allocations: 1.419 MB / 0.5757 GB, free: 4.926 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001489/0.3491, allocations: 0.9339 MB / 0.5766 GB, free: 3.969 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008125/0.35, allocations: 0.619 MB / 0.5772 GB, free: 3.348 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009078/0.3509, allocations: 0.7353 MB / 0.5779 GB, free: 2.609 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001707/0.351, allocations: 112 kB / 0.578 GB, free: 2.5 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007868/0.3518, allocations: 331.8 kB / 0.5784 GB, free: 2.176 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002425/0.3521, allocations: 298.9 kB / 0.5786 GB, free: 1.883 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006101/0.3527, allocations: 0.6491 MB / 0.5793 GB, free: 1.23 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002359/0.355, allocations: 1.778 MB / 0.581 GB, free: 15.44 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.355, allocations: 0 / 0.581 GB, free: 15.44 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.355, allocations: 0 / 0.581 GB, free: 15.44 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.31e-05/0.3551, allocations: 3.938 kB / 0.581 GB, free: 15.44 MB / 430.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.007534/0.3626, allocations: 2.334 MB / 0.5833 GB, free: 13.07 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.3626, allocations: 12.03 kB / 0.5833 GB, free: 13.05 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002351/0.3629, allocations: 198.7 kB / 0.5835 GB, free: 12.85 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009415/0.3723, allocations: 1.335 MB / 0.5848 GB, free: 11.52 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001971/0.3743, allocations: 0.5605 MB / 0.5853 GB, free: 10.93 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.3744, allocations: 103 kB / 0.5854 GB, free: 10.83 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002514/0.3746, allocations: 132.1 kB / 0.5856 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002783/0.3774, allocations: 1.487 MB / 0.587 GB, free: 9.164 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.373e-05/0.3775, allocations: 15.88 kB / 0.587 GB, free: 9.148 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001277/0.3776, allocations: 56 kB / 0.5871 GB, free: 9.094 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.656e-05/0.3776, allocations: 32 kB / 0.5871 GB, free: 9.062 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002774/0.3804, allocations: 1.521 MB / 0.5886 GB, free: 7.535 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008263/0.3887, allocations: 5.049 MB / 0.5935 GB, free: 2.285 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002024/0.3907, allocations: 1.08 MB / 0.5946 GB, free: 1.207 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009641/0.3916, allocations: 0.546 MB / 0.5951 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001466/0.3918, allocations: 44.94 kB / 0.5952 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.17e-05/0.3918, allocations: 47.56 kB / 0.5952 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of pre-optimization done (n=127): time 3.126e-06/0.3918, allocations: 4 kB / 0.5952 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of matching and sorting (n=127): time 0.009137/0.401, allocations: 2.998 MB / 0.5981 GB, free: 13.54 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.957e-05/0.401, allocations: 90.11 kB / 0.5982 GB, free: 13.44 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005912/0.4016, allocations: 469.9 kB / 0.5987 GB, free: 12.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.116e-05/0.4017, allocations: 45.7 kB / 0.5987 GB, free: 12.91 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003548/0.4021, allocations: 476.9 kB / 0.5992 GB, free: 12.44 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003705/0.4024, allocations: 444.1 kB / 0.5996 GB, free: 12 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003514/0.4028, allocations: 218.8 kB / 0.5998 GB, free: 11.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002054/0.403, allocations: 382.8 kB / 0.6002 GB, free: 11.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008743/0.4039, allocations: 462.4 kB / 0.6006 GB, free: 10.95 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/0.4049, allocations: 0.6957 MB / 0.6013 GB, free: 10.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002052/0.407, allocations: 1.209 MB / 0.6025 GB, free: 8.859 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.407, allocations: 0 / 0.6025 GB, free: 8.859 MB / 446.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.003094/0.4101, allocations: 1.578 MB / 0.604 GB, free: 7.27 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.4101, allocations: 8 kB / 0.604 GB, free: 7.262 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.929e-05/0.4101, allocations: 12 kB / 0.604 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001623/0.4118, allocations: 0.5282 MB / 0.6046 GB, free: 6.719 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008211/0.4126, allocations: 199.7 kB / 0.6047 GB, free: 6.523 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002029/0.4128, allocations: 53.19 kB / 0.6048 GB, free: 6.469 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007506/0.4135, allocations: 123.1 kB / 0.6049 GB, free: 6.348 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.255e-05/0.4136, allocations: 51.94 kB / 0.605 GB, free: 6.297 MB / 446.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.0006225/0.4142, allocations: 277.5 kB / 0.6052 GB, free: 6.016 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002133/0.4145, allocations: 79.48 kB / 0.6053 GB, free: 5.938 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002972/0.4174, allocations: 1.532 MB / 0.6068 GB, free: 4.395 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.67e-05/0.4175, allocations: 23.94 kB / 0.6068 GB, free: 4.371 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.4175, allocations: 3.938 kB / 0.6068 GB, free: 4.367 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/0.4175, allocations: 7.969 kB / 0.6068 GB, free: 4.359 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004993/0.4225, allocations: 2.816 MB / 0.6096 GB, free: 1.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/0.4225, allocations: 7.938 kB / 0.6096 GB, free: 1.473 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006639/0.4231, allocations: 143.8 kB / 0.6097 GB, free: 1.332 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001477/0.4246, allocations: 0.5223 MB / 0.6102 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.983e-05/0.4247, allocations: 28 kB / 0.6103 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003029/0.425, allocations: 68.72 kB / 0.6103 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.425, allocations: 0 / 0.6103 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004097/0.4291, allocations: 2.325 MB / 0.6126 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000555/0.4297, allocations: 207.1 kB / 0.6128 GB, free: 14.16 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001292/0.4298, allocations: 23.94 kB / 0.6128 GB, free: 14.13 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000581/0.4304, allocations: 48.03 kB / 0.6129 GB, free: 14.09 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/0.4306, allocations: 81.16 kB / 0.6129 GB, free: 14.01 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.05e-05/0.4306, allocations: 39.98 kB / 0.613 GB, free: 13.97 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003798/0.431, allocations: 310.9 kB / 0.6133 GB, free: 13.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.431, allocations: 0 / 0.6133 GB, free: 13.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0009788/0.432, allocations: 351.2 kB / 0.6136 GB, free: 13.32 MB / 462.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.004702/0.4367, allocations: 2.92 MB / 0.6165 GB, free: 10.37 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00301/0.4397, allocations: 1.28 MB / 0.6177 GB, free: 9.094 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.4397, allocations: 1.312 kB / 0.6177 GB, free: 9.094 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001731/0.4414, allocations: 0.684 MB / 0.6184 GB, free: 8.406 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008053/0.4422, allocations: 93.88 kB / 0.6185 GB, free: 8.316 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0144/0.4566, allocations: 8.4 MB / 0.6267 GB, free: 15.63 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00075/0.4574, allocations: 1.044 MB / 0.6277 GB, free: 14.56 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004534/0.4578, allocations: 106.8 kB / 0.6278 GB, free: 14.45 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000525/0.4584, allocations: 395.3 kB / 0.6282 GB, free: 14.06 MB / 478.1 MB Notification: Performance of SimCode: time 1.333e-06/0.4584, allocations: 0 / 0.6282 GB, free: 14.06 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06024/0.5186, allocations: 23.26 MB / 0.6509 GB, free: 6.957 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.29/14.81, allocations: 7.641 kB / 0.6509 GB, free: 6.953 MB / 494.1 MB " [Timeout remaining time 645] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019976 ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable I.re in file ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv. Warning: Get data of variable I.re from file ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv failed! Error: Could not read variable I.im in file ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv. Warning: Get data of variable I.im from file ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.029000026996073]