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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 107.3 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002007/0.002007, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.319/2.319, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 47.23 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.1473, allocations: 49.45 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01516/0.1625, allocations: 8.007 MB / 358.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2814/0.444, allocations: 19.42 MB / 377.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001812/0.4458, allocations: 33.12 kB / 377.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003929/0.4498, allocations: 0.8626 MB / 378.5 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01019/0.46, allocations: 1.795 MB / 380.3 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008624/0.4687, allocations: 1.336 MB / 381.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008558/0.4773, allocations: 3.242 MB / 384.9 MB, free: 7.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007001/0.478, allocations: 226.3 kB / 385.1 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001324/0.4794, allocations: 0.5415 MB / 385.6 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001431/0.4808, allocations: 0.5638 MB / 386.2 MB, free: 7.164 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003099/0.4811, allocations: 42.25 kB / 386.2 MB, free: 7.164 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008098/0.4893, allocations: 1.442 MB / 387.7 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003217/0.4896, allocations: 167.7 kB / 387.8 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001656/0.4913, allocations: 0.6805 MB / 388.5 MB, free: 6.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006559/0.4979, allocations: 2.193 MB / 390.7 MB, free: 5.578 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.4979, allocations: 1.406 kB / 390.7 MB, free: 5.578 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4979, allocations: 0 / 390.7 MB, free: 5.578 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.923e-05/0.498, allocations: 4 kB / 390.7 MB, free: 5.574 MB / 302.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.005677/0.5037, allocations: 2.006 MB / 392.7 MB, free: 4.223 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.5037, allocations: 14.53 kB / 392.7 MB, free: 4.219 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000118/0.5039, allocations: 72.84 kB / 392.8 MB, free: 4.156 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004552/0.5043, allocations: 191.9 kB / 393 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003174/0.5075, allocations: 1.364 MB / 394.4 MB, free: 3.152 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.045e-05/0.5076, allocations: 18.28 kB / 394.4 MB, free: 3.145 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/0.5077, allocations: 27.16 kB / 394.4 MB, free: 3.137 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.5092, allocations: 435 kB / 394.8 MB, free: 2.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.5092, allocations: 5.062 kB / 394.8 MB, free: 2.875 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.179e-05/0.5093, allocations: 5.781 kB / 394.8 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.5093, allocations: 15.73 kB / 394.9 MB, free: 2.863 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001798/0.5111, allocations: 474.7 kB / 395.3 MB, free: 2.676 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004382/0.5155, allocations: 1.63 MB / 397 MB, free: 1.512 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001557/0.5171, allocations: 371.2 kB / 397.3 MB, free: 1.316 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00117/0.5183, allocations: 416 kB / 397.7 MB, free: 1.129 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02585/0.5442, allocations: 15.19 MB / 412.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001081/0.5453, allocations: 265 kB / 413.2 MB, free: 1.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 4.007e-06/0.5453, allocations: 0 / 413.2 MB, free: 1.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.003992/0.5493, allocations: 0.8397 MB / 414 MB, free: 332 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.504e-05/0.5494, allocations: 63.34 kB / 414.1 MB, free: 256 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003301/0.5527, allocations: 1.459 MB / 415.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.592e-05/0.5528, allocations: 33.7 kB / 415.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001021/0.5539, allocations: 0.7173 MB / 416.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.554, allocations: 97.58 kB / 416.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003053/0.5544, allocations: 126 kB / 416.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.5545, allocations: 329.9 kB / 416.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008051/0.5554, allocations: 157 kB / 417 MB, free: 13.28 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.5564, allocations: 359.5 kB / 417.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001853/0.5582, allocations: 0.541 MB / 417.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.5583, allocations: 0 / 417.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002776/0.5611, allocations: 0.7578 MB / 418.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.5611, allocations: 8 kB / 418.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001001/0.5612, allocations: 40 kB / 418.7 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005055/0.5617, allocations: 132.1 kB / 418.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007375/0.5625, allocations: 111.8 kB / 418.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001054/0.5636, allocations: 0.685 MB / 419.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/0.565, allocations: 75.34 kB / 419.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.5651, allocations: 32 kB / 419.7 MB, free: 10.34 MB / 334.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.0007402/0.5659, allocations: 277.7 kB / 420 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00048/0.5664, allocations: 185.8 kB / 420.1 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003677/0.5701, allocations: 0.7437 MB / 420.9 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.5701, allocations: 0 / 420.9 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.151e-05/0.5701, allocations: 7.984 kB / 420.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.5701, allocations: 0 / 420.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004085/0.5742, allocations: 1.302 MB / 422.2 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.759e-05/0.5743, allocations: 32 kB / 422.2 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004571/0.5748, allocations: 55.95 kB / 422.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000423/0.5753, allocations: 124.2 kB / 422.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.38e-05/0.5753, allocations: 19.98 kB / 422.4 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000989/0.5763, allocations: 0.6733 MB / 423.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.5764, allocations: 0 / 423.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00256/0.5789, allocations: 0.7099 MB / 423.8 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009242/0.5799, allocations: 278.8 kB / 424.1 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004235/0.5803, allocations: 8 kB / 424.1 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009793/0.5813, allocations: 27.95 kB / 424.1 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/0.5815, allocations: 49.02 kB / 424.2 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.685e-05/0.5816, allocations: 20 kB / 424.2 MB, free: 5.695 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002363/0.584, allocations: 0.9571 MB / 425.1 MB, free: 4.719 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.584, allocations: 3.938 kB / 425.1 MB, free: 4.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001771/0.5858, allocations: 331.8 kB / 425.5 MB, free: 4.391 MB / 334.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.004115/0.5899, allocations: 1.741 MB / 427.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002325/0.5923, allocations: 0.5191 MB / 427.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5923, allocations: 0 / 427.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.5935, allocations: 296.7 kB / 428 MB, free: 1.883 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00272/0.5962, allocations: 320.9 kB / 428.3 MB, free: 1.566 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02608/0.6223, allocations: 10.01 MB / 438.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001397/0.6238, allocations: 1.149 MB / 439.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001588/0.6254, allocations: 195.9 kB / 439.7 MB, free: 5.402 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/0.6266, allocations: 0.5657 MB / 440.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of SimCode: time 1.342e-06/0.6266, allocations: 0 / 440.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1189/0.7455, allocations: 34.95 MB / 475.2 MB, free: 2.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.38/21.13, allocations: 7.531 kB / 475.2 MB, free: 2.176 MB / 382.1 MB (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) 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) Reference file matches