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.001279/0.001279, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001367/0.001367, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.462/1.462, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001788/0.001788, allocations: 55.92 kB / 373 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1027, allocations: 53.33 MB / 426.3 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.2061/0.3088, allocations: 8.058 MB / 434.4 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02287/0.3317, allocations: 19.52 MB / 453.9 MB, free: 9.734 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001479/0.3332, allocations: 97.81 kB / 454 MB, free: 9.664 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003013/0.3362, allocations: 0.8609 MB / 454.8 MB, free: 9.215 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007626/0.3438, allocations: 1.814 MB / 456.7 MB, free: 8.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005745/0.3495, allocations: 1.342 MB / 458 MB, free: 7.469 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006515/0.3561, allocations: 3.305 MB / 461.3 MB, free: 6.258 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003839/0.3564, allocations: 132.9 kB / 461.4 MB, free: 6.164 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.3575, allocations: 0.5856 MB / 462 MB, free: 5.938 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008567/0.3584, allocations: 0.5611 MB / 462.6 MB, free: 5.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001254/0.3585, allocations: 40.81 kB / 462.6 MB, free: 5.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005482/0.364, allocations: 1.448 MB / 464.1 MB, free: 5.215 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003729/0.3643, allocations: 170.2 kB / 464.2 MB, free: 5.102 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001165/0.3655, allocations: 0.6791 MB / 464.9 MB, free: 4.672 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00577/0.3713, allocations: 2.223 MB / 467.1 MB, free: 3.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3713, allocations: 3.938 kB / 467.1 MB, free: 3.426 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.3713, allocations: 5.062 kB / 467.1 MB, free: 3.422 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.358e-05/0.3713, allocations: 0 / 467.1 MB, free: 3.422 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.004128/0.3755, allocations: 2.07 MB / 469.2 MB, free: 1.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.3755, allocations: 9.875 kB / 469.2 MB, free: 1.82 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001047/0.3756, allocations: 68 kB / 469.3 MB, free: 1.754 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000348/0.376, allocations: 210.2 kB / 469.5 MB, free: 1.641 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002309/0.3783, allocations: 1.36 MB / 470.9 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.777e-05/0.3783, allocations: 19.06 kB / 470.9 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.211e-05/0.3784, allocations: 30.14 kB / 470.9 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.3794, allocations: 432.9 kB / 471.3 MB, free: 292 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.3794, allocations: 5.125 kB / 471.3 MB, free: 288 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.848e-05/0.3795, allocations: 10.78 kB / 471.3 MB, free: 280 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.3795, allocations: 10.17 kB / 471.3 MB, free: 276 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.3807, allocations: 471.7 kB / 471.8 MB, free: 84 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003257/0.3839, allocations: 1.623 MB / 473.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.3849, allocations: 355.5 kB / 473.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000753/0.3857, allocations: 364.6 kB / 474.1 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01675/0.4024, allocations: 15.53 MB / 489.7 MB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000688/0.4031, allocations: 255.1 kB / 489.9 MB, free: 14.87 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.615e-06/0.4031, allocations: 0 / 489.9 MB, free: 14.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002392/0.4055, allocations: 0.8496 MB / 490.8 MB, free: 13.99 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.4056, allocations: 59.34 kB / 490.8 MB, free: 13.92 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001891/0.4075, allocations: 1.455 MB / 492.3 MB, free: 12.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.536e-05/0.4075, allocations: 33.7 kB / 492.3 MB, free: 12.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006799/0.4082, allocations: 0.7232 MB / 493 MB, free: 11.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.4083, allocations: 99.2 kB / 493.1 MB, free: 11.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002097/0.4085, allocations: 130.1 kB / 493.3 MB, free: 11.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.4087, allocations: 326 kB / 493.6 MB, free: 11.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005055/0.4092, allocations: 169 kB / 493.7 MB, free: 10.94 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006303/0.4098, allocations: 355.5 kB / 494.1 MB, free: 10.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.4109, allocations: 0.5294 MB / 494.6 MB, free: 9.883 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.4109, allocations: 0 / 494.6 MB, free: 9.883 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001722/0.4126, allocations: 0.7556 MB / 495.4 MB, free: 9.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.4126, allocations: 8 kB / 495.4 MB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.424e-05/0.4127, allocations: 40.84 kB / 495.4 MB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003636/0.4131, allocations: 144.7 kB / 495.6 MB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004421/0.4135, allocations: 111.7 kB / 495.7 MB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007023/0.4142, allocations: 0.6783 MB / 496.3 MB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008437/0.4151, allocations: 75.59 kB / 496.4 MB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.997e-05/0.4151, allocations: 36 kB / 496.5 MB, free: 8.004 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.0004722/0.4156, allocations: 269.7 kB / 496.7 MB, free: 7.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002691/0.4159, allocations: 202.7 kB / 496.9 MB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001955/0.4178, allocations: 0.7334 MB / 497.7 MB, free: 6.797 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.4178, allocations: 4 kB / 497.7 MB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.4178, allocations: 0 / 497.7 MB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.4178, allocations: 0 / 497.7 MB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00252/0.4204, allocations: 1.311 MB / 499 MB, free: 5.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.314e-05/0.4204, allocations: 37.06 kB / 499 MB, free: 5.375 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002679/0.4207, allocations: 43.95 kB / 499 MB, free: 5.332 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002839/0.421, allocations: 128.8 kB / 499.2 MB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.476e-05/0.421, allocations: 23.98 kB / 499.2 MB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006377/0.4216, allocations: 0.6664 MB / 499.9 MB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4216, allocations: 0 / 499.9 MB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.4231, allocations: 0.714 MB / 0.4888 GB, free: 3.746 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000554/0.4237, allocations: 291.7 kB / 0.4891 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001727/0.4239, allocations: 8.875 kB / 0.4891 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004421/0.4243, allocations: 35.89 kB / 0.4892 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/0.4244, allocations: 39.91 kB / 0.4892 GB, free: 3.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.414e-05/0.4245, allocations: 27.98 kB / 0.4892 GB, free: 3.332 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001347/0.4258, allocations: 0.9571 MB / 0.4902 GB, free: 2.355 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4258, allocations: 0 / 0.4902 GB, free: 2.355 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001032/0.4269, allocations: 331.6 kB / 0.4905 GB, free: 2.031 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.002709/0.4296, allocations: 1.744 MB / 0.4922 GB, free: 268 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.431, allocations: 0.4966 MB / 0.4927 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.431, allocations: 0 / 0.4927 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007015/0.4317, allocations: 279.5 kB / 0.4929 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001619/0.4333, allocations: 308 kB / 0.4932 GB, free: 15.17 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01483/0.4482, allocations: 9.001 MB / 0.502 GB, free: 5.789 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007897/0.4489, allocations: 1.149 MB / 0.5031 GB, free: 4.609 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006036/0.4495, allocations: 199.9 kB / 0.5033 GB, free: 4.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006402/0.4502, allocations: 0.5618 MB / 0.5039 GB, free: 3.852 MB / 414.1 MB Notification: Performance of SimCode: time 1.492e-06/0.4502, allocations: 0 / 0.5039 GB, free: 3.852 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07953/0.5297, allocations: 35.45 MB / 0.5385 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.32/15.85, allocations: 7.516 kB / 0.5385 GB, free: 0.668 MB / 446.1 MB " [Timeout remaining time 644] (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: 18.41440240900556]