Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001593/0.001593, allocations: 114 kB / 20.44 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002012/0.002012, allocations: 214.1 kB / 23.74 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.548/1.548, allocations: 230.5 MB / 257.4 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 71.81 kB / 377.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.2717, allocations: 53.4 MB / 431.2 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009349/0.281, allocations: 8.076 MB / 439.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02379/0.3048, allocations: 19.55 MB / 458.8 MB, free: 11.08 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001453/0.3062, allocations: 98.88 kB / 458.9 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002609/0.3088, allocations: 0.8571 MB / 459.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006507/0.3154, allocations: 1.835 MB / 461.6 MB, free: 8.273 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00492/0.3203, allocations: 1.363 MB / 463 MB, free: 6.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005794/0.3261, allocations: 3.307 MB / 466.3 MB, free: 3.594 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003327/0.3264, allocations: 132.8 kB / 466.4 MB, free: 3.438 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000862/0.3273, allocations: 0.5872 MB / 467 MB, free: 2.848 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007693/0.328, allocations: 0.559 MB / 467.5 MB, free: 2.285 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.056e-05/0.3281, allocations: 40 kB / 467.6 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004426/0.3326, allocations: 1.455 MB / 469 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002596/0.3328, allocations: 174.8 kB / 469.2 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008758/0.3337, allocations: 0.6716 MB / 469.9 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004817/0.3385, allocations: 2.229 MB / 472.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3385, allocations: 0 / 472.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3385, allocations: 0 / 472.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.089e-05/0.3385, allocations: 0 / 472.1 MB, free: 13.7 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003441/0.342, allocations: 1.998 MB / 474.1 MB, free: 11.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.342, allocations: 8.031 kB / 474.1 MB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.719e-05/0.3421, allocations: 66.53 kB / 474.2 MB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002337/0.3424, allocations: 202.7 kB / 474.4 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00204/0.3444, allocations: 1.257 MB / 475.6 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/0.3444, allocations: 20.64 kB / 475.6 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.064e-05/0.3445, allocations: 28 kB / 475.7 MB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000934/0.3454, allocations: 441.8 kB / 476.1 MB, free: 9.562 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.3454, allocations: 0 / 476.1 MB, free: 9.562 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.23e-05/0.3455, allocations: 11.98 kB / 476.1 MB, free: 9.551 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.3455, allocations: 12 kB / 476.1 MB, free: 9.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.3466, allocations: 474.4 kB / 476.6 MB, free: 9.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002917/0.3495, allocations: 1.554 MB / 478.1 MB, free: 7.461 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009237/0.3504, allocations: 350.9 kB / 478.5 MB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007259/0.3512, allocations: 369.9 kB / 478.8 MB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01388/0.365, allocations: 7.035 MB / 485.9 MB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006553/0.3657, allocations: 259.9 kB / 486.1 MB, free: 15.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.605e-06/0.3657, allocations: 0 / 486.1 MB, free: 15.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002103/0.3678, allocations: 0.7664 MB / 486.9 MB, free: 14.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.899e-05/0.3679, allocations: 71.28 kB / 487 MB, free: 14.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001922/0.3698, allocations: 1.448 MB / 488.4 MB, free: 12.89 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.151e-05/0.3698, allocations: 37.69 kB / 488.5 MB, free: 12.85 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006794/0.3705, allocations: 0.7193 MB / 489.2 MB, free: 12.13 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.627e-05/0.3706, allocations: 103.2 kB / 489.3 MB, free: 12.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001932/0.3708, allocations: 133.9 kB / 489.4 MB, free: 11.89 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.3709, allocations: 326 kB / 489.7 MB, free: 11.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004337/0.3714, allocations: 152.9 kB / 489.9 MB, free: 11.42 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00061/0.372, allocations: 362.8 kB / 490.2 MB, free: 10.97 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.3731, allocations: 0.5333 MB / 490.8 MB, free: 10.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.3731, allocations: 4 kB / 490.8 MB, free: 10.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001507/0.3746, allocations: 0.7563 MB / 491.5 MB, free: 9.574 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.3746, allocations: 10.5 kB / 491.5 MB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.924e-05/0.3747, allocations: 44 kB / 491.6 MB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003333/0.375, allocations: 132.8 kB / 491.7 MB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004134/0.3754, allocations: 107.8 kB / 491.8 MB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006945/0.3761, allocations: 0.6813 MB / 492.5 MB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005432/0.3767, allocations: 71.59 kB / 492.6 MB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.454e-05/0.3768, allocations: 36 kB / 492.6 MB, free: 8.473 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * 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 {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.00043/0.3772, allocations: 273.4 kB / 492.9 MB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002035/0.3774, allocations: 198.7 kB / 493.1 MB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001801/0.3792, allocations: 0.7463 MB / 493.8 MB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.3792, allocations: 0 / 493.8 MB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.3792, allocations: 0 / 493.8 MB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.3792, allocations: 4 kB / 493.8 MB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00225/0.3814, allocations: 1.279 MB / 495.1 MB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.254e-05/0.3815, allocations: 32.06 kB / 495.1 MB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002442/0.3817, allocations: 51.89 kB / 495.2 MB, free: 5.812 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002424/0.382, allocations: 128.8 kB / 495.3 MB, free: 5.684 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.24e-05/0.382, allocations: 23.94 kB / 495.3 MB, free: 5.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006424/0.3827, allocations: 0.6655 MB / 496 MB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.3827, allocations: 3.984 kB / 496 MB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00132/0.384, allocations: 0.7219 MB / 496.7 MB, free: 4.215 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004384/0.3844, allocations: 212.6 kB / 496.9 MB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001491/0.3846, allocations: 8 kB / 496.9 MB, free: 4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004094/0.385, allocations: 23.97 kB / 497 MB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.3851, allocations: 47.88 kB / 497 MB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-05/0.3852, allocations: 20 kB / 497 MB, free: 3.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001267/0.3864, allocations: 0.961 MB / 498 MB, free: 2.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3864, allocations: 0 / 498 MB, free: 2.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009281/0.3874, allocations: 335.5 kB / 498.3 MB, free: 2.602 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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 {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002427/0.3898, allocations: 1.749 MB / 0.4883 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.3911, allocations: 496.5 kB / 0.4888 GB, free: 328 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3911, allocations: 0 / 0.4888 GB, free: 328 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006475/0.3917, allocations: 275.3 kB / 0.4891 GB, free: 40 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001296/0.393, allocations: 311 kB / 0.4894 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01318/0.4062, allocations: 9.017 MB / 0.4982 GB, free: 6.328 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007994/0.407, allocations: 1.149 MB / 0.4993 GB, free: 5.148 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005648/0.4076, allocations: 199.9 kB / 0.4995 GB, free: 4.949 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000629/0.4082, allocations: 0.5618 MB / 0.5 GB, free: 4.387 MB / 414.1 MB Notification: Performance of SimCode: time 1.473e-06/0.4082, allocations: 0 / 0.5 GB, free: 4.387 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08058/0.4888, allocations: 35.81 MB / 0.535 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.7/16.19, allocations: 6.969 kB / 0.535 GB, free: 0.7734 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.csv --start-time 0 --stop-time 1e-11 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 5.0025e-15 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp.S.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.csv. Warning: Get data of variable mp.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.96050396300052]