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.001715/0.001715, 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.001486/0.001486, allocations: 209.6 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.55/1.55, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.001549/0.001549, allocations: 55.86 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.228, allocations: 53.37 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01465/0.2426, allocations: 12.4 MB / 443.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02417/0.2668, allocations: 17.89 MB / 461.4 MB, free: 8.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002489/0.2693, allocations: 138.5 kB / 461.5 MB, free: 8.113 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003441/0.2727, allocations: 1.138 MB / 462.6 MB, free: 6.969 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007577/0.2803, allocations: 2.347 MB / 465 MB, free: 4.602 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004754/0.2851, allocations: 1.426 MB / 466.4 MB, free: 3.176 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0108/0.2959, allocations: 6.595 MB / 473 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006452/0.2965, allocations: 277.7 kB / 473.3 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001838/0.2984, allocations: 1.159 MB / 474.4 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001458/0.2998, allocations: 1.106 MB / 475.5 MB, free: 9.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002125/0.3, allocations: 72 kB / 475.6 MB, free: 9.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003555/0.3036, allocations: 1.241 MB / 476.8 MB, free: 8.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004188/0.304, allocations: 333.6 kB / 477.2 MB, free: 8.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001459/0.3055, allocations: 1.009 MB / 478.2 MB, free: 7.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006846/0.3123, allocations: 3.834 MB / 482 MB, free: 3.473 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3123, allocations: 4 kB / 482 MB, free: 3.469 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3123, allocations: 0 / 482 MB, free: 3.469 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.962e-05/0.3124, allocations: 0 / 482 MB, free: 3.469 MB / 382.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.006127/0.3185, allocations: 3.723 MB / 485.7 MB, free: 15.68 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3186, allocations: 12.03 kB / 485.8 MB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001389/0.3187, allocations: 98.5 kB / 485.8 MB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004599/0.3192, allocations: 417.4 kB / 486.3 MB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003821/0.323, allocations: 2.299 MB / 488.6 MB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.493e-05/0.323, allocations: 33 kB / 488.6 MB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.3232, allocations: 59.98 kB / 488.6 MB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.3246, allocations: 0.7265 MB / 489.4 MB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.3246, allocations: 0 / 489.4 MB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.828e-05/0.3247, allocations: 20 kB / 489.4 MB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.344e-05/0.3247, allocations: 19.98 kB / 489.4 MB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00168/0.3264, allocations: 0.8202 MB / 490.2 MB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005658/0.3321, allocations: 2.852 MB / 493.1 MB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.3333, allocations: 0.5124 MB / 493.6 MB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001041/0.3343, allocations: 0.5731 MB / 494.2 MB, free: 7.059 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0278/0.3621, allocations: 13.72 MB / 0.496 GB, free: 8.949 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008255/0.3629, allocations: 365.7 kB / 0.4963 GB, free: 8.578 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.915e-06/0.3629, allocations: 0 / 0.4963 GB, free: 8.578 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002456/0.3654, allocations: 1.103 MB / 0.4974 GB, free: 7.469 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.3655, allocations: 59.39 kB / 0.4975 GB, free: 7.398 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004088/0.3695, allocations: 2.954 MB / 0.5004 GB, free: 4.434 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.667e-05/0.3696, allocations: 33.7 kB / 0.5004 GB, free: 4.395 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001513/0.3711, allocations: 1.502 MB / 0.5019 GB, free: 2.883 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001952/0.3713, allocations: 174.5 kB / 0.502 GB, free: 2.711 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003216/0.3716, allocations: 238.3 kB / 0.5022 GB, free: 2.473 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.3718, allocations: 341.9 kB / 0.5026 GB, free: 2.133 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006127/0.3724, allocations: 237.9 kB / 0.5028 GB, free: 1.898 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009395/0.3734, allocations: 0.6017 MB / 0.5034 GB, free: 1.121 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001576/0.3749, allocations: 0.8974 MB / 0.5043 GB, free: 52 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.375, allocations: 8 kB / 0.5043 GB, free: 44 kB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002462/0.3774, allocations: 1.232 MB / 0.5055 GB, free: 14.8 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.3774, allocations: 16.03 kB / 0.5055 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000148/0.3776, allocations: 80 kB / 0.5056 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.07e-05/0.3776, allocations: 16 kB / 0.5056 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007448/0.3784, allocations: 203.6 kB / 0.5058 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.969e-05/0.3784, allocations: 27.86 kB / 0.5058 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009924/0.3794, allocations: 107.3 kB / 0.5059 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.3795, allocations: 68 kB / 0.506 GB, free: 14.3 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.0008012/0.3803, allocations: 433.5 kB / 0.5064 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004256/0.3807, allocations: 405.5 kB / 0.5068 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002685/0.3834, allocations: 1.193 MB / 0.5079 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.3834, allocations: 8 kB / 0.5079 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.3834, allocations: 0 / 0.5079 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.3834, allocations: 0 / 0.5079 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003596/0.387, allocations: 2.021 MB / 0.5099 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001131/0.3871, allocations: 72 kB / 0.51 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004953/0.3876, allocations: 95.84 kB / 0.5101 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.3876, allocations: 0 / 0.5101 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.887e-05/0.3877, allocations: 32 kB / 0.5101 GB, free: 9.977 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/0.3877, allocations: 8 kB / 0.5101 GB, free: 9.969 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3877, allocations: 4.062 kB / 0.5101 GB, free: 9.965 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002472/0.3902, allocations: 1.322 MB / 0.5114 GB, free: 8.617 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009267/0.3911, allocations: 419.2 kB / 0.5118 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002849/0.3914, allocations: 8 kB / 0.5118 GB, free: 8.199 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006626/0.3921, allocations: 31.97 kB / 0.5118 GB, free: 8.168 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.3922, allocations: 63.86 kB / 0.5119 GB, free: 8.105 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.579e-05/0.3923, allocations: 36 kB / 0.5119 GB, free: 8.07 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002693/0.395, allocations: 1.907 MB / 0.5138 GB, free: 6.164 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.395, allocations: 0 / 0.5138 GB, free: 6.164 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001452/0.3965, allocations: 0.5892 MB / 0.5144 GB, free: 5.574 MB / 430.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.00381/0.4003, allocations: 2.558 MB / 0.5169 GB, free: 2.98 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001708/0.402, allocations: 0.7677 MB / 0.5176 GB, free: 2.188 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.402, allocations: 0 / 0.5176 GB, free: 2.188 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000813/0.4028, allocations: 431 kB / 0.518 GB, free: 1.742 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002531/0.4053, allocations: 0.6153 MB / 0.5186 GB, free: 1.121 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0245/0.4298, allocations: 16.43 MB / 0.5347 GB, free: 152 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1779/0.6077, allocations: 1.107 MB / 0.5358 GB, free: 107 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001103/0.6088, allocations: 361.4 kB / 0.5361 GB, free: 107 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001037/0.6099, allocations: 1.212 MB / 0.5373 GB, free: 106.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.052e-06/0.6099, allocations: 0 / 0.5373 GB, free: 106.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09449/0.7044, allocations: 64.5 MB / 0.6003 GB, free: 48.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.22/15.92, allocations: 3.438 kB / 0.6003 GB, free: 48.48 MB / 446.1 MB " [Timeout remaining time 644] (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: 18.63343398901634]