Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.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.001391/0.001391, allocations: 112 kB / 20.43 MB, free: 1.465 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.001525/0.001525, allocations: 186.9 kB / 23.71 MB, free: 4.719 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.432/1.432, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 47.94 kB / 370.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2725, allocations: 52.19 MB / 422.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.0096/0.2821, allocations: 8.084 MB / 430.7 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02434/0.3064, allocations: 19.5 MB / 450.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001503/0.3079, allocations: 98.94 kB / 450.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002661/0.3106, allocations: 0.8529 MB / 451.2 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006659/0.3172, allocations: 1.839 MB / 453 MB, free: 136 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004785/0.322, allocations: 1.359 MB / 454.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006604/0.3286, allocations: 3.268 MB / 457.6 MB, free: 11.49 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004123/0.329, allocations: 140.8 kB / 457.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001047/0.3301, allocations: 0.5833 MB / 458.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008063/0.3309, allocations: 0.5668 MB / 458.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001676/0.331, allocations: 40 kB / 458.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004604/0.3356, allocations: 1.444 MB / 460.4 MB, free: 8.688 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002232/0.3359, allocations: 162.9 kB / 460.5 MB, free: 8.527 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008339/0.3367, allocations: 0.6871 MB / 461.2 MB, free: 7.836 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003778/0.3405, allocations: 2.221 MB / 463.5 MB, free: 5.605 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.3405, allocations: 0 / 463.5 MB, free: 5.605 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3405, allocations: 0 / 463.5 MB, free: 5.605 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.971e-05/0.3405, allocations: 0 / 463.5 MB, free: 5.605 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.003699/0.3442, allocations: 1.991 MB / 465.4 MB, free: 3.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.3443, allocations: 19.95 kB / 465.5 MB, free: 3.551 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001032/0.3444, allocations: 66.53 kB / 465.5 MB, free: 3.477 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002724/0.3446, allocations: 198.8 kB / 465.7 MB, free: 3.281 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002216/0.3469, allocations: 1.245 MB / 467 MB, free: 1.957 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.3469, allocations: 24.59 kB / 467 MB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.347, allocations: 31.94 kB / 467 MB, free: 1.902 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009564/0.348, allocations: 437.8 kB / 467.5 MB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.348, allocations: 0 / 467.5 MB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.112e-05/0.348, allocations: 8 kB / 467.5 MB, free: 1.465 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.721e-05/0.348, allocations: 15.98 kB / 467.5 MB, free: 1.449 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.3491, allocations: 478.3 kB / 467.9 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002993/0.3521, allocations: 1.566 MB / 469.5 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008938/0.353, allocations: 341 kB / 469.8 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007024/0.3537, allocations: 385.7 kB / 470.2 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01364/0.3674, allocations: 7.007 MB / 477.2 MB, free: 7.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006639/0.368, allocations: 255.2 kB / 477.5 MB, free: 7.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.735e-06/0.368, allocations: 4 kB / 477.5 MB, free: 7.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002092/0.3701, allocations: 0.7587 MB / 478.2 MB, free: 6.387 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.569e-05/0.3702, allocations: 63.34 kB / 478.3 MB, free: 6.312 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001984/0.3722, allocations: 1.459 MB / 479.8 MB, free: 4.816 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.128e-05/0.3722, allocations: 29.7 kB / 479.8 MB, free: 4.781 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007236/0.3729, allocations: 0.731 MB / 480.5 MB, free: 4.047 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.373, allocations: 95.28 kB / 480.6 MB, free: 3.953 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/0.3732, allocations: 130 kB / 480.7 MB, free: 3.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.3734, allocations: 326 kB / 481.1 MB, free: 3.496 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004491/0.3738, allocations: 156.8 kB / 481.2 MB, free: 3.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006221/0.3745, allocations: 354.9 kB / 481.6 MB, free: 2.902 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.3755, allocations: 0.5377 MB / 482.1 MB, free: 2.273 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.3756, allocations: 4 kB / 482.1 MB, free: 2.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001478/0.377, allocations: 0.7524 MB / 482.8 MB, free: 1.508 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/0.3771, allocations: 8.125 kB / 482.9 MB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.779e-05/0.3771, allocations: 44 kB / 482.9 MB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003233/0.3775, allocations: 132.8 kB / 483 MB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000424/0.3779, allocations: 111.7 kB / 483.1 MB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007115/0.3786, allocations: 0.6851 MB / 483.8 MB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005386/0.3791, allocations: 75.53 kB / 483.9 MB, free: 440 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.699e-05/0.3792, allocations: 32 kB / 483.9 MB, free: 408 kB / 382.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.0004236/0.3796, allocations: 273.6 kB / 484.2 MB, free: 124 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002404/0.3799, allocations: 203 kB / 484.4 MB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001838/0.3817, allocations: 0.7392 MB / 485.1 MB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.3817, allocations: 11.98 kB / 485.1 MB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3817, allocations: 0 / 485.1 MB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.3817, allocations: 0 / 485.1 MB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002331/0.384, allocations: 1.272 MB / 486.4 MB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-05/0.3841, allocations: 36 kB / 486.5 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002433/0.3843, allocations: 47.94 kB / 486.5 MB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000243/0.3846, allocations: 132.8 kB / 486.6 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.986e-05/0.3846, allocations: 19.98 kB / 486.6 MB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006469/0.3853, allocations: 0.6656 MB / 487.3 MB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3853, allocations: 0 / 487.3 MB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.3867, allocations: 0.729 MB / 488 MB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004512/0.3871, allocations: 204.6 kB / 488.2 MB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001489/0.3873, allocations: 8 kB / 488.3 MB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004097/0.3877, allocations: 28.08 kB / 488.3 MB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.3878, allocations: 43.89 kB / 488.3 MB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.851e-05/0.3878, allocations: 27.98 kB / 488.3 MB, free: 11.83 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001337/0.3892, allocations: 0.961 MB / 489.3 MB, free: 10.85 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3892, allocations: 4 kB / 489.3 MB, free: 10.85 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009278/0.3901, allocations: 331.6 kB / 489.6 MB, free: 10.52 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.002449/0.3926, allocations: 1.733 MB / 491.4 MB, free: 8.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.3939, allocations: 0.5075 MB / 491.9 MB, free: 8.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3939, allocations: 0 / 491.9 MB, free: 8.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006554/0.3946, allocations: 284.2 kB / 492.2 MB, free: 7.941 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001266/0.3958, allocations: 298.8 kB / 492.4 MB, free: 7.645 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01433/0.4102, allocations: 9.001 MB / 0.4897 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008272/0.411, allocations: 1.149 MB / 0.4908 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005802/0.4116, allocations: 195.9 kB / 0.491 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000675/0.4122, allocations: 0.5579 MB / 0.4915 GB, free: 12.32 MB / 414.1 MB Notification: Performance of SimCode: time 1.653e-06/0.4122, allocations: 0 / 0.4915 GB, free: 12.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08234/0.4946, allocations: 35.77 MB / 0.5265 GB, free: 8.867 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.97/16.47, allocations: 4 kB / 0.5265 GB, free: 8.863 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv. Warning: Get data of variable mp.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.171100817999104]