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.001325/0.001325, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001466/0.001466, allocations: 215.3 kB / 23.74 MB, free: 4.656 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.459/1.459, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.001502/0.001502, allocations: 47.92 kB / 377.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2701, allocations: 53.37 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009365/0.2795, allocations: 8.076 MB / 439.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02404/0.3035, allocations: 19.55 MB / 458.7 MB, free: 11.13 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001501/0.305, allocations: 98.88 kB / 458.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002623/0.3077, allocations: 0.853 MB / 459.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006904/0.3146, allocations: 1.835 MB / 461.5 MB, free: 8.332 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00538/0.3199, allocations: 1.367 MB / 462.9 MB, free: 6.965 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006318/0.3263, allocations: 3.314 MB / 466.2 MB, free: 3.641 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003772/0.3266, allocations: 124.9 kB / 466.3 MB, free: 3.492 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009238/0.3276, allocations: 0.5873 MB / 466.9 MB, free: 2.902 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007693/0.3283, allocations: 0.5591 MB / 467.5 MB, free: 2.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.228e-05/0.3284, allocations: 40 kB / 467.5 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004421/0.3328, allocations: 1.451 MB / 469 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002095/0.3331, allocations: 170.8 kB / 469.1 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007535/0.3338, allocations: 0.6794 MB / 469.8 MB, free: 15.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00371/0.3375, allocations: 2.221 MB / 472 MB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3375, allocations: 0 / 472 MB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3375, allocations: 0 / 472 MB, free: 13.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.821e-05/0.3375, allocations: 0 / 472 MB, free: 13.77 MB / 382.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.003364/0.3409, allocations: 2.006 MB / 474 MB, free: 11.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.341, allocations: 8.031 kB / 474.1 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.335e-05/0.3411, allocations: 66.53 kB / 474.1 MB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002305/0.3413, allocations: 198.7 kB / 474.3 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002012/0.3433, allocations: 1.257 MB / 475.6 MB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.3433, allocations: 20.66 kB / 475.6 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.738e-05/0.3434, allocations: 27.98 kB / 475.6 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009133/0.3443, allocations: 449.7 kB / 476.1 MB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.3443, allocations: 0 / 476.1 MB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.903e-05/0.3444, allocations: 4 kB / 476.1 MB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.3444, allocations: 19.92 kB / 476.1 MB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.3454, allocations: 474.4 kB / 476.5 MB, free: 9.125 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002857/0.3483, allocations: 1.558 MB / 478.1 MB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008904/0.3492, allocations: 346 kB / 478.4 MB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007148/0.3499, allocations: 369.9 kB / 478.8 MB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01383/0.3637, allocations: 7.027 MB / 485.8 MB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006407/0.3644, allocations: 259.8 kB / 486.1 MB, free: 15.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.555e-06/0.3644, allocations: 4 kB / 486.1 MB, free: 15.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002242/0.3666, allocations: 0.7742 MB / 486.9 MB, free: 14.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/0.3667, allocations: 63.28 kB / 486.9 MB, free: 14.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002083/0.3688, allocations: 1.455 MB / 488.4 MB, free: 12.94 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.876e-05/0.3688, allocations: 33.7 kB / 488.4 MB, free: 12.9 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007015/0.3695, allocations: 0.7232 MB / 489.1 MB, free: 12.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.3696, allocations: 91.28 kB / 489.2 MB, free: 12.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002142/0.3698, allocations: 138 kB / 489.4 MB, free: 11.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.37, allocations: 322 kB / 489.7 MB, free: 11.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004314/0.3704, allocations: 160.8 kB / 489.8 MB, free: 11.47 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006001/0.371, allocations: 362.8 kB / 490.2 MB, free: 11.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001041/0.3721, allocations: 0.5378 MB / 490.7 MB, free: 10.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.728e-06/0.3721, allocations: 0 / 490.7 MB, free: 10.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001604/0.3737, allocations: 0.7486 MB / 491.5 MB, free: 9.633 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/0.3737, allocations: 11.94 kB / 491.5 MB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.939e-05/0.3738, allocations: 48.05 kB / 491.5 MB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003661/0.3742, allocations: 128.8 kB / 491.7 MB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004204/0.3746, allocations: 111.7 kB / 491.8 MB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006907/0.3753, allocations: 0.6734 MB / 492.4 MB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006505/0.3759, allocations: 71.59 kB / 492.5 MB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.908e-05/0.376, allocations: 40.06 kB / 492.5 MB, free: 8.527 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.0004941/0.3765, allocations: 271.3 kB / 492.8 MB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002125/0.3767, allocations: 202.7 kB / 493 MB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.3785, allocations: 0.7502 MB / 493.8 MB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3785, allocations: 4 kB / 493.8 MB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3785, allocations: 4 kB / 493.8 MB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.3785, allocations: 0 / 493.8 MB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002353/0.3809, allocations: 1.275 MB / 495 MB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-05/0.381, allocations: 36 kB / 495.1 MB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.3812, allocations: 47.88 kB / 495.1 MB, free: 5.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002643/0.3815, allocations: 132.9 kB / 495.3 MB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.15e-05/0.3815, allocations: 23.92 kB / 495.3 MB, free: 5.703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006646/0.3822, allocations: 0.6617 MB / 495.9 MB, free: 5.016 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.3822, allocations: 4.031 kB / 495.9 MB, free: 5.012 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.3835, allocations: 0.7101 MB / 496.7 MB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004701/0.384, allocations: 212.6 kB / 496.9 MB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/0.3841, allocations: 8 kB / 496.9 MB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004076/0.3845, allocations: 27.95 kB / 496.9 MB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.3846, allocations: 43.89 kB / 496.9 MB, free: 3.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.922e-05/0.3847, allocations: 23.98 kB / 497 MB, free: 3.965 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001344/0.386, allocations: 0.9571 MB / 497.9 MB, free: 2.988 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.386, allocations: 3.938 kB / 497.9 MB, free: 2.984 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009944/0.387, allocations: 335.6 kB / 498.3 MB, free: 2.656 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.002527/0.3896, allocations: 1.744 MB / 500 MB, free: 0.875 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.3909, allocations: 499.9 kB / 0.4888 GB, free: 384 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.145e-06/0.3909, allocations: 7.938 kB / 0.4888 GB, free: 376 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006419/0.3915, allocations: 279.8 kB / 0.489 GB, free: 88 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/0.393, allocations: 310.8 kB / 0.4893 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01404/0.407, allocations: 9.013 MB / 0.4981 GB, free: 6.379 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007941/0.4078, allocations: 1.153 MB / 0.4993 GB, free: 5.195 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006003/0.4084, allocations: 195.9 kB / 0.4994 GB, free: 5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006504/0.4091, allocations: 0.5657 MB / 0.5 GB, free: 4.434 MB / 414.1 MB Notification: Performance of SimCode: time 1.743e-06/0.4091, allocations: 0 / 0.5 GB, free: 4.434 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08512/0.4942, allocations: 35.8 MB / 0.5349 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.72/16.22, allocations: 6.812 kB / 0.535 GB, free: 0.9453 MB / 446.1 MB " [Timeout remaining time 643] (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.921293223000248]