Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 109.6 kB / 20.43 MB, free: 1.309 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 191 kB / 23.72 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 47.91 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2918, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01653/0.3083, allocations: 14.78 MB / 437.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02818/0.3365, allocations: 20.74 MB / 458.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00291/0.3394, allocations: 134.6 kB / 458.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004273/0.3437, allocations: 1.254 MB / 459.5 MB, free: 9.559 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009304/0.353, allocations: 2.363 MB / 461.9 MB, free: 7.176 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005312/0.3583, allocations: 1.457 MB / 463.3 MB, free: 5.715 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01215/0.3704, allocations: 6.518 MB / 469.9 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008015/0.3712, allocations: 277.7 kB / 470.1 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002086/0.3733, allocations: 1.143 MB / 471.3 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00169/0.375, allocations: 1.106 MB / 472.4 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002029/0.3752, allocations: 72 kB / 472.5 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00463/0.3798, allocations: 1.483 MB / 473.9 MB, free: 11.06 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006279/0.3805, allocations: 329.6 kB / 474.3 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002638/0.3831, allocations: 1.374 MB / 475.6 MB, free: 9.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00901/0.3921, allocations: 3.787 MB / 479.4 MB, free: 5.547 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.994e-06/0.3921, allocations: 0 / 479.4 MB, free: 5.547 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3921, allocations: 0 / 479.4 MB, free: 5.547 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001015/0.3922, allocations: 0 / 479.4 MB, free: 5.547 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.006299/0.3985, allocations: 3.738 MB / 483.2 MB, free: 1.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.3986, allocations: 12.03 kB / 483.2 MB, free: 1.738 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001283/0.3987, allocations: 102.5 kB / 483.3 MB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004867/0.3992, allocations: 417.4 kB / 483.7 MB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004379/0.4036, allocations: 2.3 MB / 486 MB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.147e-05/0.4036, allocations: 37 kB / 486 MB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001446/0.4038, allocations: 51.95 kB / 486.1 MB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.4053, allocations: 0.7382 MB / 486.8 MB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.4053, allocations: 0 / 486.8 MB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-05/0.4054, allocations: 20 kB / 486.8 MB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.237e-05/0.4054, allocations: 19.98 kB / 486.8 MB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00164/0.407, allocations: 0.8202 MB / 487.7 MB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005783/0.4128, allocations: 2.987 MB / 490.6 MB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.414, allocations: 0.5202 MB / 491.2 MB, free: 9.543 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009864/0.415, allocations: 0.5699 MB / 491.7 MB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02745/0.4425, allocations: 13.75 MB / 0.4936 GB, free: 10.83 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008283/0.4433, allocations: 373.6 kB / 0.494 GB, free: 10.45 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.585e-06/0.4433, allocations: 0 / 0.494 GB, free: 10.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002515/0.4458, allocations: 1.107 MB / 0.4951 GB, free: 9.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.452e-05/0.4459, allocations: 55.41 kB / 0.4951 GB, free: 9.273 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004177/0.45, allocations: 2.935 MB / 0.498 GB, free: 6.328 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.4501, allocations: 37.64 kB / 0.498 GB, free: 6.285 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001492/0.4516, allocations: 1.506 MB / 0.4995 GB, free: 4.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002411/0.4519, allocations: 170.6 kB / 0.4997 GB, free: 4.602 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003436/0.4522, allocations: 226.4 kB / 0.4999 GB, free: 4.375 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.4524, allocations: 345.9 kB / 0.5002 GB, free: 4.031 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006445/0.4531, allocations: 241.8 kB / 0.5004 GB, free: 3.793 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000917/0.454, allocations: 0.6057 MB / 0.501 GB, free: 3.008 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001635/0.4556, allocations: 0.8935 MB / 0.5019 GB, free: 1.941 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.4556, allocations: 4 kB / 0.5019 GB, free: 1.938 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002608/0.4582, allocations: 1.251 MB / 0.5031 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.799e-05/0.4583, allocations: 8 kB / 0.5031 GB, free: 0.668 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001187/0.4584, allocations: 80 kB / 0.5032 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.805e-05/0.4584, allocations: 20.72 kB / 0.5032 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007403/0.4592, allocations: 203.7 kB / 0.5034 GB, free: 380 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.938e-05/0.4592, allocations: 27.86 kB / 0.5035 GB, free: 352 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001171/0.4604, allocations: 115.2 kB / 0.5036 GB, free: 236 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.4605, allocations: 64 kB / 0.5036 GB, free: 172 kB / 414.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.0009189/0.4614, allocations: 437.5 kB / 0.504 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00049/0.4619, allocations: 397.5 kB / 0.5044 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002737/0.4646, allocations: 1.19 MB / 0.5056 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.4646, allocations: 7.984 kB / 0.5056 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.4646, allocations: 0 / 0.5056 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.4646, allocations: 3.938 kB / 0.5056 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003849/0.4685, allocations: 2.068 MB / 0.5076 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001141/0.4686, allocations: 68 kB / 0.5077 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004888/0.4691, allocations: 95.84 kB / 0.5078 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.035e-05/0.4691, allocations: 4 kB / 0.5078 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.883e-05/0.4692, allocations: 32 kB / 0.5078 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.4692, allocations: 0 / 0.5078 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.411e-06/0.4692, allocations: 7.938 kB / 0.5078 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002464/0.4716, allocations: 1.311 MB / 0.5091 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000991/0.4726, allocations: 427.2 kB / 0.5095 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002926/0.4729, allocations: 8 kB / 0.5095 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006541/0.4736, allocations: 31.95 kB / 0.5095 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.4737, allocations: 67.94 kB / 0.5096 GB, free: 9.938 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.161e-05/0.4738, allocations: 39.98 kB / 0.5096 GB, free: 9.898 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002872/0.4767, allocations: 1.899 MB / 0.5115 GB, free: 8 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4767, allocations: 0 / 0.5115 GB, free: 8 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001432/0.4781, allocations: 0.593 MB / 0.5121 GB, free: 7.406 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.003977/0.4821, allocations: 2.542 MB / 0.5146 GB, free: 4.828 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001748/0.4839, allocations: 0.7788 MB / 0.5153 GB, free: 4.023 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4839, allocations: 0 / 0.5153 GB, free: 4.023 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008299/0.4847, allocations: 435.4 kB / 0.5157 GB, free: 3.574 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002967/0.4877, allocations: 0.603 MB / 0.5163 GB, free: 2.969 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02695/0.5146, allocations: 16.45 MB / 0.5324 GB, free: 1.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00135/0.516, allocations: 1.657 MB / 0.534 GB, free: 304 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.2147/0.7306, allocations: 355.9 kB / 0.5344 GB, free: 111.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001606/0.7322, allocations: 1.216 MB / 0.5355 GB, free: 110.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.423e-06/0.7322, allocations: 0.6562 kB / 0.5355 GB, free: 110.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1266/0.8588, allocations: 61.65 MB / 0.5957 GB, free: 57.92 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.46/20.32, allocations: 14.97 kB / 0.5958 GB, free: 57.91 MB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.96708264100016]