Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.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.001786/0.001786, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001623/0.001623, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.477/1.477, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002551/0.002551, allocations: 47.94 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2861, allocations: 53.37 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.00907/0.2951, allocations: 6.913 MB / 438 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02335/0.3185, allocations: 16.7 MB / 454.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.3197, allocations: 94.94 kB / 454.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002332/0.322, allocations: 0.7607 MB / 455.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005603/0.3276, allocations: 1.819 MB / 457.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00414/0.3318, allocations: 1.32 MB / 458.7 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005335/0.3371, allocations: 3.303 MB / 462 MB, free: 7.605 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003423/0.3374, allocations: 132.8 kB / 462.1 MB, free: 7.449 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009251/0.3384, allocations: 0.5911 MB / 462.7 MB, free: 6.855 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008709/0.3392, allocations: 0.5394 MB / 463.3 MB, free: 6.312 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001507/0.3394, allocations: 44 kB / 463.3 MB, free: 6.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003031/0.3424, allocations: 1.171 MB / 464.5 MB, free: 5.098 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001997/0.3426, allocations: 166.8 kB / 464.6 MB, free: 4.934 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006012/0.3432, allocations: 0.5045 MB / 465.1 MB, free: 4.426 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003006/0.3462, allocations: 2.237 MB / 467.4 MB, free: 2.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3462, allocations: 0 / 467.4 MB, free: 2.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3462, allocations: 0 / 467.4 MB, free: 2.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.506e-05/0.3462, allocations: 3.938 kB / 467.4 MB, free: 2.176 MB / 366.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.003213/0.3495, allocations: 1.998 MB / 469.4 MB, free: 136 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.3495, allocations: 12.03 kB / 469.4 MB, free: 124 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.729e-05/0.3496, allocations: 66.53 kB / 469.4 MB, free: 48 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000257/0.3498, allocations: 202.9 kB / 469.6 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002155/0.352, allocations: 1.26 MB / 470.9 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.352, allocations: 20.66 kB / 470.9 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.909e-05/0.3521, allocations: 27.98 kB / 471 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009826/0.3531, allocations: 433.6 kB / 471.4 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.3531, allocations: 0 / 471.4 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.135e-05/0.3531, allocations: 8 kB / 471.4 MB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.3532, allocations: 15.98 kB / 471.4 MB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.3543, allocations: 474.4 kB / 471.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002938/0.3573, allocations: 1.473 MB / 473.3 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009512/0.3582, allocations: 347.3 kB / 473.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007491/0.359, allocations: 369.9 kB / 474 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0139/0.3729, allocations: 6.992 MB / 481 MB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006701/0.3735, allocations: 259.9 kB / 481.3 MB, free: 3.836 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 4.598e-06/0.3735, allocations: 3.984 kB / 481.3 MB, free: 3.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002143/0.3757, allocations: 0.7704 MB / 482.1 MB, free: 3.051 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.835e-05/0.3757, allocations: 63.28 kB / 482.1 MB, free: 2.977 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001861/0.3776, allocations: 1.463 MB / 483.6 MB, free: 1.477 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.244e-05/0.3776, allocations: 37.64 kB / 483.6 MB, free: 1.434 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007341/0.3784, allocations: 0.7232 MB / 484.3 MB, free: 0.707 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.3785, allocations: 103.2 kB / 484.4 MB, free: 0.6055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001902/0.3787, allocations: 126 kB / 484.6 MB, free: 488 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.3789, allocations: 326 kB / 484.9 MB, free: 156 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004854/0.3793, allocations: 161 kB / 485 MB, free: 15.99 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006357/0.38, allocations: 358.8 kB / 485.4 MB, free: 15.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001119/0.3811, allocations: 0.5339 MB / 485.9 MB, free: 14.92 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.3811, allocations: 0 / 485.9 MB, free: 14.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001556/0.3827, allocations: 0.752 MB / 486.7 MB, free: 14.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.3827, allocations: 14.59 kB / 486.7 MB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.917e-05/0.3827, allocations: 40 kB / 486.7 MB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003404/0.3831, allocations: 145.2 kB / 486.9 MB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004242/0.3835, allocations: 103.9 kB / 487 MB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007002/0.3842, allocations: 0.6811 MB / 487.7 MB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005501/0.3848, allocations: 71.58 kB / 487.7 MB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.177e-05/0.3848, allocations: 36 kB / 487.8 MB, free: 13.05 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.0004163/0.3852, allocations: 279.3 kB / 488 MB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002066/0.3855, allocations: 198.7 kB / 488.2 MB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001885/0.3873, allocations: 0.7346 MB / 489 MB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.3873, allocations: 4 kB / 489 MB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.3874, allocations: 3.984 kB / 489 MB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.3874, allocations: 0 / 489 MB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002321/0.3897, allocations: 1.244 MB / 490.2 MB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.716e-05/0.3897, allocations: 32 kB / 490.2 MB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002504/0.39, allocations: 51.89 kB / 490.3 MB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000246/0.3902, allocations: 128.8 kB / 490.4 MB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.809e-05/0.3903, allocations: 16 kB / 490.4 MB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006209/0.3909, allocations: 0.6694 MB / 491.1 MB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3909, allocations: 0 / 491.1 MB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.3923, allocations: 0.7219 MB / 491.8 MB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004526/0.3927, allocations: 212.6 kB / 492 MB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001572/0.3929, allocations: 8 kB / 492 MB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004464/0.3933, allocations: 23.97 kB / 492.1 MB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.3935, allocations: 43.88 kB / 492.1 MB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.83e-05/0.3935, allocations: 28.12 kB / 492.1 MB, free: 8.531 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001245/0.3947, allocations: 0.9571 MB / 493.1 MB, free: 7.555 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3947, allocations: 4 kB / 493.1 MB, free: 7.551 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000861/0.3956, allocations: 335.5 kB / 493.4 MB, free: 7.223 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.002505/0.3981, allocations: 1.744 MB / 495.2 MB, free: 5.438 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001334/0.3994, allocations: 0.4927 MB / 495.7 MB, free: 4.934 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3994, allocations: 0 / 495.7 MB, free: 4.934 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000693/0.4001, allocations: 275.2 kB / 495.9 MB, free: 4.652 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001299/0.4014, allocations: 310.6 kB / 496.2 MB, free: 4.348 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01346/0.4149, allocations: 9.012 MB / 0.4934 GB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005925/0.4155, allocations: 0.5589 MB / 0.494 GB, free: 10.35 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006203/0.4161, allocations: 203.9 kB / 0.4941 GB, free: 10.15 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000694/0.4168, allocations: 0.5618 MB / 0.4947 GB, free: 9.586 MB / 414.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4168, allocations: 0 / 0.4947 GB, free: 9.586 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07798/0.4948, allocations: 36.17 MB / 0.53 GB, free: 5.812 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.25/14.74, allocations: 6.953 kB / 0.53 GB, free: 5.809 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv. Warning: Get data of variable mp.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.44814488198608]