Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001823/0.001823, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 211.4 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.426/1.426, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2265/0.2265, allocations: 46.95 MB / 360.9 MB, free: 4.031 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 71.84 kB / 0.4961 GB, free: 7.719 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.296, allocations: 66.02 MB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.009032/0.3051, allocations: 6.826 MB / 0.5672 GB, free: 13.39 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005747/0.3108, allocations: 2.283 MB / 0.5695 GB, free: 11.1 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00152/0.3123, allocations: 35.88 kB / 0.5695 GB, free: 11.06 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005266/0.3176, allocations: 1.683 MB / 0.5712 GB, free: 9.375 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003403/0.321, allocations: 0.7062 MB / 0.5718 GB, free: 8.668 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003084/0.3241, allocations: 1.035 MB / 0.5729 GB, free: 7.641 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002712/0.3268, allocations: 1.413 MB / 0.5742 GB, free: 6.215 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001791/0.3286, allocations: 0.9301 MB / 0.5751 GB, free: 5.262 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000966/0.3296, allocations: 0.6267 MB / 0.5758 GB, free: 4.633 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009036/0.3305, allocations: 0.7275 MB / 0.5765 GB, free: 3.902 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001623/0.3306, allocations: 112 kB / 0.5766 GB, free: 3.793 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007592/0.3314, allocations: 331.8 kB / 0.5769 GB, free: 3.469 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002304/0.3316, allocations: 290.9 kB / 0.5772 GB, free: 3.184 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005293/0.3321, allocations: 0.5404 MB / 0.5777 GB, free: 2.641 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002333/0.3345, allocations: 1.782 MB / 0.5794 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3345, allocations: 0 / 0.5794 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3345, allocations: 7.938 kB / 0.5794 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.3345, allocations: 0 / 0.5794 GB, free: 0.8438 MB / 414.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.007684/0.3422, allocations: 2.334 MB / 0.5817 GB, free: 14.47 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.3422, allocations: 8.031 kB / 0.5817 GB, free: 14.46 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002451/0.3425, allocations: 198.7 kB / 0.5819 GB, free: 14.26 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009589/0.3521, allocations: 1.335 MB / 0.5832 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001427/0.3535, allocations: 0.5567 MB / 0.5838 GB, free: 12.34 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.705e-05/0.3536, allocations: 103 kB / 0.5839 GB, free: 12.24 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002237/0.3538, allocations: 136.1 kB / 0.584 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002711/0.3565, allocations: 1.587 MB / 0.5855 GB, free: 10.45 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.511e-05/0.3566, allocations: 11.89 kB / 0.5856 GB, free: 10.43 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001283/0.3567, allocations: 52 kB / 0.5856 GB, free: 10.38 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.15e-05/0.3567, allocations: 39.98 kB / 0.5856 GB, free: 10.34 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002749/0.3595, allocations: 1.497 MB / 0.5871 GB, free: 8.84 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007771/0.3673, allocations: 4.442 MB / 0.5914 GB, free: 4.254 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002051/0.3693, allocations: 1.083 MB / 0.5925 GB, free: 3.176 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009439/0.3703, allocations: 0.5437 MB / 0.593 GB, free: 2.629 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000143/0.3704, allocations: 36.97 kB / 0.5931 GB, free: 2.594 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.705e-05/0.3704, allocations: 55.5 kB / 0.5931 GB, free: 2.527 MB / 430.1 MB Notification: Performance of pre-optimization done (n=127): time 3.567e-06/0.3704, allocations: 0 / 0.5931 GB, free: 2.527 MB / 430.1 MB Notification: Performance of matching and sorting (n=127): time 0.009009/0.3795, allocations: 3.002 MB / 0.5961 GB, free: 15.52 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.336e-05/0.3795, allocations: 90.11 kB / 0.5961 GB, free: 15.41 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005971/0.3801, allocations: 477.8 kB / 0.5966 GB, free: 14.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.105e-05/0.3802, allocations: 45.7 kB / 0.5966 GB, free: 14.88 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003355/0.3805, allocations: 476.9 kB / 0.5971 GB, free: 14.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003959/0.3809, allocations: 448.1 kB / 0.5975 GB, free: 13.97 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000375/0.3813, allocations: 222.8 kB / 0.5977 GB, free: 13.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.3815, allocations: 374.8 kB / 0.5981 GB, free: 13.37 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008496/0.3824, allocations: 466.4 kB / 0.5985 GB, free: 12.91 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/0.3834, allocations: 0.6996 MB / 0.5992 GB, free: 12.12 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002064/0.3855, allocations: 1.202 MB / 0.6004 GB, free: 10.83 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.088e-05/0.3855, allocations: 8 kB / 0.6004 GB, free: 10.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.003082/0.3886, allocations: 1.567 MB / 0.6019 GB, free: 9.246 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/0.3886, allocations: 12.03 kB / 0.6019 GB, free: 9.234 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-05/0.3886, allocations: 8 kB / 0.6019 GB, free: 9.227 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001612/0.3902, allocations: 0.5318 MB / 0.6025 GB, free: 8.691 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007802/0.391, allocations: 203.6 kB / 0.6027 GB, free: 8.492 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001847/0.3912, allocations: 49.2 kB / 0.6027 GB, free: 8.441 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006717/0.3919, allocations: 119.1 kB / 0.6028 GB, free: 8.324 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.413e-05/0.3919, allocations: 55.92 kB / 0.6029 GB, free: 8.27 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.000533/0.3925, allocations: 269.5 kB / 0.6031 GB, free: 7.996 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/0.3927, allocations: 87.44 kB / 0.6032 GB, free: 7.91 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002881/0.3955, allocations: 1.544 MB / 0.6047 GB, free: 6.355 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.153e-05/0.3956, allocations: 15.94 kB / 0.6047 GB, free: 6.34 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.3956, allocations: 4 kB / 0.6047 GB, free: 6.336 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.765e-05/0.3956, allocations: 3.984 kB / 0.6047 GB, free: 6.332 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00498/0.4006, allocations: 2.644 MB / 0.6073 GB, free: 3.621 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.4006, allocations: 0 / 0.6073 GB, free: 3.621 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006738/0.4012, allocations: 151.8 kB / 0.6075 GB, free: 3.473 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001498/0.4027, allocations: 0.5145 MB / 0.608 GB, free: 2.957 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/0.4029, allocations: 27.98 kB / 0.608 GB, free: 2.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000309/0.4032, allocations: 64.73 kB / 0.6081 GB, free: 2.863 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/0.4032, allocations: 7.984 kB / 0.6081 GB, free: 2.855 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004079/0.4072, allocations: 2.318 MB / 0.6103 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005126/0.4078, allocations: 203.1 kB / 0.6105 GB, free: 324 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001242/0.4079, allocations: 27.94 kB / 0.6106 GB, free: 296 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005735/0.4085, allocations: 39.98 kB / 0.6106 GB, free: 256 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002021/0.4087, allocations: 89.12 kB / 0.6107 GB, free: 168 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.492e-05/0.4087, allocations: 32 kB / 0.6107 GB, free: 136 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003955/0.4091, allocations: 318.9 kB / 0.611 GB, free: 15.82 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4091, allocations: 0 / 0.611 GB, free: 15.82 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0009511/0.4101, allocations: 351.2 kB / 0.6113 GB, free: 15.48 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.004496/0.4146, allocations: 2.924 MB / 0.6142 GB, free: 12.52 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003105/0.4177, allocations: 1.281 MB / 0.6155 GB, free: 11.24 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.4177, allocations: 0 / 0.6155 GB, free: 11.24 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00177/0.4195, allocations: 0.6841 MB / 0.6161 GB, free: 10.55 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008813/0.4203, allocations: 96.7 kB / 0.6162 GB, free: 10.46 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01345/0.4338, allocations: 8.386 MB / 0.6244 GB, free: 1.785 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000499/0.4343, allocations: 454.5 kB / 0.6248 GB, free: 1.305 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000448/0.4347, allocations: 110.8 kB / 0.6249 GB, free: 1.191 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005237/0.4353, allocations: 395.3 kB / 0.6253 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4353, allocations: 0 / 0.6253 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08686/0.5221, allocations: 21.92 MB / 0.6467 GB, free: 11.17 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/13.61, allocations: 2.656 kB / 0.6467 GB, free: 11.17 MB / 494.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_4_1_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv. Warning: Get data of variable I.re from file ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv failed! Error: Could not read variable I.im in file ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv. Warning: Get data of variable I.im from file ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.66502766299527]