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.002045/0.002045, allocations: 123.4 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.002332/0.002332, allocations: 208.3 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.539/1.539, 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: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 47.92 kB / 373.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.108, allocations: 53.33 MB / 426.8 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.2127/0.3207, allocations: 8.068 MB / 434.9 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01993/0.3406, allocations: 19.53 MB / 454.4 MB, free: 9.598 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001185/0.3418, allocations: 94.78 kB / 454.5 MB, free: 9.531 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002518/0.3443, allocations: 0.8559 MB / 455.3 MB, free: 9.086 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00683/0.3512, allocations: 1.81 MB / 457.1 MB, free: 8.035 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005079/0.3562, allocations: 1.349 MB / 458.5 MB, free: 7.336 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006106/0.3623, allocations: 3.306 MB / 461.8 MB, free: 6.125 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003588/0.3627, allocations: 132.7 kB / 461.9 MB, free: 6.031 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009868/0.3637, allocations: 0.5847 MB / 462.5 MB, free: 5.805 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006807/0.3644, allocations: 0.5647 MB / 463.1 MB, free: 5.523 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.462e-05/0.3645, allocations: 41.69 kB / 463.1 MB, free: 5.523 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00446/0.3689, allocations: 1.449 MB / 464.6 MB, free: 5.078 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002059/0.3691, allocations: 174.1 kB / 464.7 MB, free: 4.957 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008057/0.3699, allocations: 0.6757 MB / 465.4 MB, free: 4.531 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004026/0.374, allocations: 2.226 MB / 467.6 MB, free: 3.219 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.374, allocations: 1.125 kB / 467.6 MB, free: 3.219 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.374, allocations: 0 / 467.6 MB, free: 3.219 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.867e-05/0.374, allocations: 0 / 467.6 MB, free: 3.219 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.003467/0.3775, allocations: 2.071 MB / 469.7 MB, free: 1.617 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.3775, allocations: 8.875 kB / 469.7 MB, free: 1.617 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002841/0.3778, allocations: 206 kB / 469.9 MB, free: 1.508 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002003/0.3798, allocations: 1.36 MB / 471.3 MB, free: 432 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.732e-05/0.3798, allocations: 18.28 kB / 471.3 MB, free: 424 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.645e-05/0.3799, allocations: 30.28 kB / 471.3 MB, free: 412 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009808/0.3809, allocations: 435.9 kB / 471.8 MB, free: 152 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.3809, allocations: 3.938 kB / 471.8 MB, free: 148 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.994e-05/0.381, allocations: 11.19 kB / 471.8 MB, free: 140 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.741e-05/0.381, allocations: 14.23 kB / 471.8 MB, free: 132 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.3822, allocations: 477.1 kB / 472.2 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003173/0.3854, allocations: 1.613 MB / 473.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.3864, allocations: 347.5 kB / 474.2 MB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007807/0.3872, allocations: 368.8 kB / 474.6 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01743/0.4046, allocations: 15.53 MB / 490.1 MB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000677/0.4053, allocations: 251.2 kB / 490.3 MB, free: 14.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.074e-06/0.4053, allocations: 3.938 kB / 490.3 MB, free: 14.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.00236/0.4077, allocations: 0.8457 MB / 491.2 MB, free: 13.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.4077, allocations: 67.28 kB / 491.3 MB, free: 13.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001929/0.4097, allocations: 1.452 MB / 492.7 MB, free: 12.13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.99e-05/0.4097, allocations: 33.7 kB / 492.7 MB, free: 12.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007079/0.4104, allocations: 0.7154 MB / 493.5 MB, free: 11.37 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.4105, allocations: 111.2 kB / 493.6 MB, free: 11.26 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002087/0.4107, allocations: 130.1 kB / 493.7 MB, free: 11.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.4109, allocations: 326 kB / 494 MB, free: 10.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005098/0.4114, allocations: 157 kB / 494.2 MB, free: 10.64 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006792/0.4121, allocations: 359.4 kB / 494.5 MB, free: 10.21 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001216/0.4133, allocations: 0.5294 MB / 495 MB, free: 9.586 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.4133, allocations: 8 kB / 495 MB, free: 9.578 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00172/0.415, allocations: 0.7531 MB / 495.8 MB, free: 8.816 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.4151, allocations: 12 kB / 495.8 MB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-05/0.4151, allocations: 43.94 kB / 495.9 MB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003446/0.4155, allocations: 140.7 kB / 496 MB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004495/0.4159, allocations: 103.8 kB / 496.1 MB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007208/0.4166, allocations: 0.6785 MB / 496.8 MB, free: 7.816 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007488/0.4174, allocations: 75.58 kB / 496.8 MB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.004e-05/0.4175, allocations: 36 kB / 496.9 MB, free: 7.707 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.0004323/0.4179, allocations: 269.7 kB / 497.1 MB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002475/0.4181, allocations: 203.3 kB / 497.3 MB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002012/0.4202, allocations: 0.7389 MB / 498.1 MB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.4202, allocations: 0 / 498.1 MB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.4202, allocations: 1.125 kB / 498.1 MB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.4202, allocations: 7.984 kB / 498.1 MB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00252/0.4227, allocations: 1.295 MB / 499.4 MB, free: 5.117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.48e-05/0.4228, allocations: 40 kB / 499.4 MB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002673/0.423, allocations: 43.89 kB / 499.5 MB, free: 5.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002785/0.4233, allocations: 132.8 kB / 499.6 MB, free: 4.906 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.533e-05/0.4234, allocations: 23.94 kB / 499.6 MB, free: 4.883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006698/0.424, allocations: 0.6663 MB / 0.4886 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.424, allocations: 0 / 0.4886 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.4256, allocations: 0.7257 MB / 0.4893 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005322/0.4261, allocations: 291.7 kB / 0.4895 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001541/0.4263, allocations: 4 kB / 0.4896 GB, free: 3.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004562/0.4267, allocations: 31.95 kB / 0.4896 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.4269, allocations: 39.91 kB / 0.4896 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.315e-05/0.4269, allocations: 25.67 kB / 0.4896 GB, free: 3.035 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001376/0.4283, allocations: 0.9571 MB / 0.4906 GB, free: 2.059 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4283, allocations: 4 kB / 0.4906 GB, free: 2.055 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001076/0.4294, allocations: 327.6 kB / 0.4909 GB, free: 1.734 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.001025/0.4304, allocations: 0.5706 MB / 0.4915 GB, free: 1.164 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.4319, allocations: 0.5043 MB / 0.4919 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4319, allocations: 0 / 0.4919 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007428/0.4326, allocations: 279.5 kB / 0.4922 GB, free: 372 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001473/0.4341, allocations: 301 kB / 0.4925 GB, free: 76 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003998/0.4381, allocations: 2.246 MB / 0.4947 GB, free: 13.79 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001069/0.4392, allocations: 1.145 MB / 0.4958 GB, free: 12.61 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000614/0.4398, allocations: 208.5 kB / 0.496 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001596/0.4399, allocations: 87.44 kB / 0.4961 GB, free: 12.33 MB / 414.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4399, allocations: 0 / 0.4961 GB, free: 12.33 MB / 414.1 MB Notification: Performance of Templates: time 0.03797/0.4779, allocations: 19.96 MB / 0.5156 GB, free: 8.508 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.423009101301432]