Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001286/0.001286, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.001419/0.001419, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.333/1.333, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 53.33 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2512, allocations: 49.16 MB / 396.3 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007286/0.2585, allocations: 7.751 MB / 404.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02255/0.281, allocations: 18.6 MB / 422.7 MB, free: 5.461 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001756/0.2828, allocations: 97.66 kB / 422.8 MB, free: 5.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00286/0.2856, allocations: 0.8283 MB / 423.6 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008547/0.2942, allocations: 1.815 MB / 425.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005425/0.2996, allocations: 1.309 MB / 426.7 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006119/0.3057, allocations: 3.201 MB / 429.9 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003769/0.3061, allocations: 134.3 kB / 430.1 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009379/0.307, allocations: 0.5465 MB / 430.6 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007569/0.3078, allocations: 0.5433 MB / 431.2 MB, free: 204 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.897e-05/0.3079, allocations: 40.88 kB / 431.2 MB, free: 204 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004108/0.312, allocations: 1.135 MB / 432.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002407/0.3122, allocations: 166.8 kB / 432.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009252/0.3132, allocations: 0.6832 MB / 433.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004023/0.3172, allocations: 2.241 MB / 435.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.3172, allocations: 0 / 435.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3172, allocations: 4 kB / 435.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.128e-05/0.3172, allocations: 0 / 435.4 MB, free: 12.26 MB / 350.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.003296/0.3205, allocations: 2.002 MB / 437.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.3205, allocations: 11.98 kB / 437.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.719e-05/0.3206, allocations: 70.53 kB / 437.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000245/0.3209, allocations: 206.7 kB / 437.7 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002115/0.323, allocations: 1.261 MB / 439 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.79e-05/0.323, allocations: 24.59 kB / 439 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.323e-05/0.3231, allocations: 24 kB / 439 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009533/0.3241, allocations: 441.8 kB / 439.5 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.3241, allocations: 4 kB / 439.5 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.34e-05/0.3241, allocations: 8 kB / 439.5 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.267e-05/0.3241, allocations: 11.98 kB / 439.5 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.3252, allocations: 474.4 kB / 439.9 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00303/0.3283, allocations: 1.578 MB / 441.5 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008938/0.3292, allocations: 339.4 kB / 441.9 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007227/0.3299, allocations: 365.9 kB / 442.2 MB, free: 5.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01395/0.3438, allocations: 7.051 MB / 449.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006547/0.3445, allocations: 255.2 kB / 449.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.294e-06/0.3445, allocations: 0 / 449.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002037/0.3465, allocations: 0.778 MB / 450.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.925e-05/0.3466, allocations: 63.38 kB / 450.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001856/0.3484, allocations: 1.464 MB / 451.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.196e-05/0.3485, allocations: 33.7 kB / 451.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006532/0.3491, allocations: 0.7233 MB / 452.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.659e-05/0.3492, allocations: 95.22 kB / 452.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001916/0.3494, allocations: 126 kB / 452.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.3496, allocations: 341.8 kB / 453.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004347/0.35, allocations: 156.9 kB / 453.3 MB, free: 9.902 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005813/0.3506, allocations: 359.6 kB / 453.6 MB, free: 9.457 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.3516, allocations: 0.5333 MB / 454.2 MB, free: 8.832 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.3516, allocations: 4 kB / 454.2 MB, free: 8.828 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001483/0.3531, allocations: 0.7556 MB / 454.9 MB, free: 8.062 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.3531, allocations: 8 kB / 454.9 MB, free: 8.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-05/0.3532, allocations: 44.84 kB / 455 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003177/0.3535, allocations: 132.8 kB / 455.1 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004083/0.3539, allocations: 107.8 kB / 455.2 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006521/0.3546, allocations: 0.685 MB / 455.9 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005447/0.3551, allocations: 71.64 kB / 456 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.762e-05/0.3552, allocations: 40 kB / 456 MB, free: 6.953 MB / 366.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.0004062/0.3556, allocations: 273.5 kB / 456.3 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002127/0.3558, allocations: 202.7 kB / 456.5 MB, free: 6.477 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/0.3576, allocations: 0.7386 MB / 457.2 MB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.3576, allocations: 4 kB / 457.2 MB, free: 5.723 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3576, allocations: 4 kB / 457.2 MB, free: 5.719 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.3576, allocations: 0 / 457.2 MB, free: 5.719 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002221/0.3598, allocations: 1.276 MB / 458.5 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.509e-05/0.3599, allocations: 43.94 kB / 458.5 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002509/0.3601, allocations: 43.94 kB / 458.6 MB, free: 4.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002366/0.3603, allocations: 128.8 kB / 458.7 MB, free: 4.164 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.441e-05/0.3604, allocations: 23.98 kB / 458.7 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005988/0.361, allocations: 0.6656 MB / 459.4 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/0.361, allocations: 7.969 kB / 459.4 MB, free: 3.441 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.3623, allocations: 0.7174 MB / 460.1 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004427/0.3627, allocations: 216.6 kB / 460.3 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.3629, allocations: 4 kB / 460.3 MB, free: 2.477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004161/0.3633, allocations: 31.95 kB / 460.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.3634, allocations: 39.89 kB / 460.4 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.562e-05/0.3635, allocations: 27.98 kB / 460.4 MB, free: 2.379 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001284/0.3648, allocations: 0.9614 MB / 461.4 MB, free: 1.398 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3648, allocations: 0 / 461.4 MB, free: 1.398 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008678/0.3656, allocations: 339.5 kB / 461.7 MB, free: 1.066 MB / 366.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.002514/0.3681, allocations: 1.753 MB / 463.5 MB, free: 15.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.3694, allocations: 0.4922 MB / 464 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3694, allocations: 0 / 464 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006382/0.3701, allocations: 279.9 kB / 464.2 MB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009634/0.371, allocations: 258.9 kB / 464.5 MB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01332/0.3843, allocations: 9.054 MB / 473.5 MB, free: 4.797 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008329/0.3852, allocations: 1.149 MB / 474.7 MB, free: 3.617 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005768/0.3858, allocations: 199.9 kB / 474.9 MB, free: 3.418 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006387/0.3864, allocations: 0.5579 MB / 475.4 MB, free: 2.859 MB / 382.1 MB Notification: Performance of SimCode: time 1.001e-06/0.3864, allocations: 0 / 475.4 MB, free: 2.859 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07785/0.4642, allocations: 36 MB / 0.4995 GB, free: 14.76 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.48/15.95, allocations: 7.953 kB / 0.4995 GB, free: 14.75 MB / 430.1 MB " [Timeout remaining time 644] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.csv. Warning: Get data of variable mp.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.33486856899981]