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.001851/0.001851, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002327/0.002327, allocations: 211 kB / 23.73 MB, free: 4.387 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.453/1.453, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001654/0.001654, allocations: 52.05 kB / 377.7 MB, free: 3.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2172/0.2188, allocations: 53.37 MB / 431.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01405/0.2329, allocations: 12.4 MB / 443.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02407/0.2569, allocations: 17.89 MB / 461.4 MB, free: 8.422 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002137/0.2591, allocations: 138.5 kB / 461.5 MB, free: 8.285 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003282/0.2624, allocations: 1.133 MB / 462.6 MB, free: 7.148 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00708/0.2694, allocations: 2.351 MB / 465 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004305/0.2737, allocations: 1.414 MB / 466.4 MB, free: 3.363 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01051/0.2843, allocations: 6.607 MB / 473 MB, free: 12.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006874/0.2849, allocations: 261.7 kB / 473.3 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001856/0.2868, allocations: 1.159 MB / 474.4 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001462/0.2883, allocations: 1.063 MB / 475.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002353/0.2885, allocations: 72 kB / 475.6 MB, free: 10.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003341/0.2918, allocations: 1.202 MB / 476.8 MB, free: 8.941 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003462/0.2922, allocations: 329.6 kB / 477.1 MB, free: 8.617 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001238/0.2934, allocations: 1.013 MB / 478.1 MB, free: 7.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005955/0.2994, allocations: 3.834 MB / 481.9 MB, free: 3.746 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.2994, allocations: 0 / 481.9 MB, free: 3.746 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2994, allocations: 0 / 481.9 MB, free: 3.746 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.327e-05/0.2994, allocations: 3.984 kB / 481.9 MB, free: 3.742 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.005799/0.3052, allocations: 3.73 MB / 485.7 MB, free: 15.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.3053, allocations: 8.031 kB / 485.7 MB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001285/0.3054, allocations: 98.5 kB / 485.8 MB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004572/0.3059, allocations: 413.4 kB / 486.2 MB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003853/0.3097, allocations: 2.299 MB / 488.5 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.646e-05/0.3098, allocations: 33 kB / 488.5 MB, free: 13 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.3099, allocations: 55.98 kB / 488.6 MB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.3113, allocations: 0.7343 MB / 489.3 MB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.3114, allocations: 0 / 489.3 MB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.739e-05/0.3114, allocations: 20 kB / 489.3 MB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.408e-05/0.3115, allocations: 19.98 kB / 489.3 MB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001689/0.3131, allocations: 0.8202 MB / 490.1 MB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005229/0.3184, allocations: 2.848 MB / 493 MB, free: 8.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.3196, allocations: 0.5164 MB / 493.5 MB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/0.3206, allocations: 0.5731 MB / 494.1 MB, free: 7.328 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02691/0.3475, allocations: 13.72 MB / 0.4959 GB, free: 9.227 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008097/0.3483, allocations: 369.5 kB / 0.4963 GB, free: 8.852 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.775e-06/0.3483, allocations: 0 / 0.4963 GB, free: 8.852 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002564/0.3509, allocations: 1.099 MB / 0.4973 GB, free: 7.746 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.338e-05/0.351, allocations: 67.39 kB / 0.4974 GB, free: 7.668 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003946/0.3549, allocations: 2.95 MB / 0.5003 GB, free: 4.707 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.674e-05/0.355, allocations: 37.7 kB / 0.5003 GB, free: 4.664 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001437/0.3564, allocations: 1.498 MB / 0.5018 GB, free: 3.156 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002018/0.3566, allocations: 178.5 kB / 0.5019 GB, free: 2.98 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003221/0.357, allocations: 230.3 kB / 0.5022 GB, free: 2.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.3571, allocations: 341.9 kB / 0.5025 GB, free: 2.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006139/0.3577, allocations: 237.9 kB / 0.5027 GB, free: 2.176 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009027/0.3586, allocations: 0.6056 MB / 0.5033 GB, free: 1.391 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001572/0.3602, allocations: 0.8973 MB / 0.5042 GB, free: 328 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.275e-06/0.3602, allocations: 4 kB / 0.5042 GB, free: 324 kB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002274/0.3625, allocations: 1.247 MB / 0.5054 GB, free: 15.06 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.3625, allocations: 8 kB / 0.5054 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/0.3626, allocations: 80 kB / 0.5055 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.966e-05/0.3627, allocations: 20 kB / 0.5055 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007355/0.3634, allocations: 204.2 kB / 0.5057 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.895e-05/0.3634, allocations: 27.86 kB / 0.5057 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009862/0.3644, allocations: 107.3 kB / 0.5058 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.3645, allocations: 64 kB / 0.5059 GB, free: 14.56 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.0007375/0.3653, allocations: 433.4 kB / 0.5063 GB, free: 14.13 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004289/0.3657, allocations: 409.4 kB / 0.5067 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002659/0.3684, allocations: 1.19 MB / 0.5079 GB, free: 12.53 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.3684, allocations: 7.984 kB / 0.5079 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3684, allocations: 0 / 0.5079 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3684, allocations: 0 / 0.5079 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003673/0.3721, allocations: 2.021 MB / 0.5098 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001061/0.3722, allocations: 68 kB / 0.5099 GB, free: 10.37 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005108/0.3727, allocations: 95.92 kB / 0.51 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.3727, allocations: 4 kB / 0.51 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.048e-05/0.3727, allocations: 31.98 kB / 0.51 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.173e-06/0.3727, allocations: 4 kB / 0.51 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3727, allocations: 0 / 0.51 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002406/0.3752, allocations: 1.326 MB / 0.5113 GB, free: 8.887 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008487/0.376, allocations: 419.2 kB / 0.5117 GB, free: 8.477 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002801/0.3763, allocations: 8 kB / 0.5117 GB, free: 8.469 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006917/0.377, allocations: 23.97 kB / 0.5118 GB, free: 8.445 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.3771, allocations: 71.92 kB / 0.5118 GB, free: 8.375 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.287e-05/0.3772, allocations: 36 kB / 0.5119 GB, free: 8.34 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002719/0.3799, allocations: 1.911 MB / 0.5137 GB, free: 6.43 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3799, allocations: 0 / 0.5137 GB, free: 6.43 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001517/0.3814, allocations: 0.5852 MB / 0.5143 GB, free: 5.844 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.003863/0.3853, allocations: 2.554 MB / 0.5168 GB, free: 3.254 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001663/0.387, allocations: 0.7716 MB / 0.5175 GB, free: 2.457 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.387, allocations: 4 kB / 0.5175 GB, free: 2.453 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008142/0.3878, allocations: 430.9 kB / 0.518 GB, free: 2.008 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002558/0.3903, allocations: 0.6077 MB / 0.5186 GB, free: 1.395 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02447/0.4148, allocations: 16.43 MB / 0.5346 GB, free: 440 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1755/0.5903, allocations: 1.111 MB / 0.5357 GB, free: 108 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00159/0.5919, allocations: 357.2 kB / 0.536 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00171/0.5936, allocations: 1.216 MB / 0.5372 GB, free: 107.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.313e-06/0.5936, allocations: 0 / 0.5372 GB, free: 107.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1529/0.7466, allocations: 64.28 MB / 0.6 GB, free: 49.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.37/16.12, allocations: 4 kB / 0.6 GB, free: 49.81 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.74043825780973]