Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001667/0.001667, allocations: 113.4 kB / 20.43 MB, free: 1.457 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.002035/0.002035, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.465/1.465, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 47.92 kB / 377.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.267, allocations: 53.36 MB / 431.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01524/0.2822, allocations: 14.77 MB / 445.9 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02478/0.307, allocations: 20.79 MB / 466.7 MB, free: 3.168 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002471/0.3094, allocations: 130.6 kB / 466.8 MB, free: 3.039 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003591/0.313, allocations: 1.247 MB / 468.1 MB, free: 1.785 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00852/0.3216, allocations: 2.366 MB / 470.4 MB, free: 15.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005223/0.3268, allocations: 1.453 MB / 471.9 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01139/0.3382, allocations: 6.611 MB / 478.5 MB, free: 7.312 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007395/0.3389, allocations: 273.7 kB / 478.8 MB, free: 7.016 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001955/0.3409, allocations: 1.143 MB / 479.9 MB, free: 5.867 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001745/0.3426, allocations: 1.122 MB / 481 MB, free: 4.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002252/0.3428, allocations: 76 kB / 481.1 MB, free: 4.664 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004725/0.3476, allocations: 1.475 MB / 482.6 MB, free: 3.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004587/0.348, allocations: 325.7 kB / 482.9 MB, free: 2.867 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001762/0.3498, allocations: 1.374 MB / 484.3 MB, free: 1.484 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006442/0.3562, allocations: 3.791 MB / 488.1 MB, free: 13.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3562, allocations: 4 kB / 488.1 MB, free: 13.67 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3562, allocations: 0 / 488.1 MB, free: 13.67 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.659e-05/0.3563, allocations: 0 / 488.1 MB, free: 13.67 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005773/0.3621, allocations: 3.734 MB / 491.8 MB, free: 9.879 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.3621, allocations: 12.03 kB / 491.8 MB, free: 9.867 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001225/0.3623, allocations: 90.52 kB / 491.9 MB, free: 9.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004949/0.3627, allocations: 421.4 kB / 492.3 MB, free: 9.355 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003722/0.3665, allocations: 2.295 MB / 494.6 MB, free: 6.965 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.124e-05/0.3665, allocations: 37 kB / 494.6 MB, free: 6.926 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.3666, allocations: 56 kB / 494.7 MB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001359/0.368, allocations: 0.7382 MB / 495.4 MB, free: 6.129 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.368, allocations: 3.938 kB / 495.4 MB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.522e-05/0.3681, allocations: 16 kB / 495.5 MB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.2e-05/0.3681, allocations: 19.98 kB / 495.5 MB, free: 6.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00157/0.3697, allocations: 0.8202 MB / 496.3 MB, free: 5.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005413/0.3751, allocations: 3.003 MB / 499.3 MB, free: 2.195 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.3762, allocations: 0.5203 MB / 499.8 MB, free: 1.668 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009338/0.3772, allocations: 0.5653 MB / 0.4887 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02611/0.4033, allocations: 13.79 MB / 0.5021 GB, free: 2.922 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008003/0.4041, allocations: 365.7 kB / 0.5025 GB, free: 2.551 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.225e-06/0.4041, allocations: 4 kB / 0.5025 GB, free: 2.547 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002555/0.4066, allocations: 1.103 MB / 0.5035 GB, free: 1.438 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.062e-05/0.4067, allocations: 63.34 kB / 0.5036 GB, free: 1.363 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00424/0.4109, allocations: 2.935 MB / 0.5065 GB, free: 14.42 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.14e-05/0.411, allocations: 37.7 kB / 0.5065 GB, free: 14.38 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001688/0.4127, allocations: 1.495 MB / 0.508 GB, free: 12.87 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003433/0.413, allocations: 178.5 kB / 0.5081 GB, free: 12.7 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003616/0.4134, allocations: 230.3 kB / 0.5084 GB, free: 12.46 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002888/0.4137, allocations: 345.9 kB / 0.5087 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007199/0.4144, allocations: 237.9 kB / 0.5089 GB, free: 11.89 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/0.4154, allocations: 0.5979 MB / 0.5095 GB, free: 11.11 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/0.417, allocations: 0.9012 MB / 0.5104 GB, free: 10.04 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.417, allocations: 4 kB / 0.5104 GB, free: 10.04 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002511/0.4195, allocations: 1.239 MB / 0.5116 GB, free: 8.789 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.181e-05/0.4195, allocations: 15.98 kB / 0.5116 GB, free: 8.773 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001168/0.4196, allocations: 80 kB / 0.5117 GB, free: 8.695 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.94e-05/0.4197, allocations: 16 kB / 0.5117 GB, free: 8.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007091/0.4204, allocations: 203.6 kB / 0.5119 GB, free: 8.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001075/0.4205, allocations: 27.92 kB / 0.5119 GB, free: 8.453 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/0.4216, allocations: 107.5 kB / 0.512 GB, free: 8.348 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.4217, allocations: 71.94 kB / 0.5121 GB, free: 8.277 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008383/0.4225, allocations: 431 kB / 0.5125 GB, free: 7.848 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005195/0.423, allocations: 401.5 kB / 0.5129 GB, free: 7.453 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002816/0.4258, allocations: 1.19 MB / 0.514 GB, free: 6.258 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.4259, allocations: 11.98 kB / 0.5141 GB, free: 6.246 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.4259, allocations: 0 / 0.5141 GB, free: 6.246 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.4259, allocations: 3.984 kB / 0.5141 GB, free: 6.242 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003816/0.4297, allocations: 2.072 MB / 0.5161 GB, free: 4.105 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001044/0.4298, allocations: 68 kB / 0.5161 GB, free: 4.039 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000475/0.4303, allocations: 99.97 kB / 0.5162 GB, free: 3.941 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.4303, allocations: 3.938 kB / 0.5162 GB, free: 3.938 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.827e-05/0.4303, allocations: 32 kB / 0.5163 GB, free: 3.906 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.557e-05/0.4303, allocations: 4 kB / 0.5163 GB, free: 3.902 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.4303, allocations: 4 kB / 0.5163 GB, free: 3.898 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002504/0.4329, allocations: 1.311 MB / 0.5176 GB, free: 2.562 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.4339, allocations: 427.1 kB / 0.518 GB, free: 2.145 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002831/0.4341, allocations: 8 kB / 0.518 GB, free: 2.137 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006446/0.4348, allocations: 31.97 kB / 0.518 GB, free: 2.105 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001684/0.4349, allocations: 67.8 kB / 0.5181 GB, free: 2.039 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-05/0.435, allocations: 36 kB / 0.5181 GB, free: 2.004 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002906/0.4379, allocations: 1.907 MB / 0.52 GB, free: 100 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4379, allocations: 0 / 0.52 GB, free: 100 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001538/0.4395, allocations: 0.593 MB / 0.5206 GB, free: 15.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004325/0.4438, allocations: 2.545 MB / 0.523 GB, free: 12.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001716/0.4455, allocations: 0.7792 MB / 0.5238 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4455, allocations: 0 / 0.5238 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000808/0.4463, allocations: 427.4 kB / 0.5242 GB, free: 11.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00271/0.449, allocations: 0.6075 MB / 0.5248 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2312/0.6803, allocations: 16.44 MB / 0.5409 GB, free: 102.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/0.6815, allocations: 1.668 MB / 0.5425 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009947/0.6825, allocations: 360.6 kB / 0.5428 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008949/0.6834, allocations: 1.207 MB / 0.544 GB, free: 100.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.673e-06/0.6834, allocations: 0 / 0.544 GB, free: 100.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1/0.7834, allocations: 61.7 MB / 0.6043 GB, free: 44.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.31/20.1, allocations: 11.02 kB / 0.6043 GB, free: 44.76 MB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp1.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.79774143599934]