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.001249/0.001249, allocations: 112.2 kB / 21.19 MB, free: 0.7812 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.001382/0.001382, allocations: 214.5 kB / 24.49 MB, free: 4.18 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.406/1.406, allocations: 230.6 MB / 258.3 MB, free: 8 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.001536/0.001536, allocations: 51.92 kB / 379 MB, free: 2.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2785, allocations: 53.37 MB / 432.4 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009594/0.2881, allocations: 8.072 MB / 440.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02469/0.3128, allocations: 19.55 MB / 460 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001479/0.3143, allocations: 94.88 kB / 460.1 MB, free: 11.1 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002682/0.317, allocations: 0.8616 MB / 461 MB, free: 10.24 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006759/0.3237, allocations: 1.831 MB / 462.8 MB, free: 8.395 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005004/0.3287, allocations: 1.363 MB / 464.2 MB, free: 7.031 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006365/0.3351, allocations: 3.31 MB / 467.5 MB, free: 3.711 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003921/0.3355, allocations: 132.8 kB / 467.6 MB, free: 3.555 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009671/0.3365, allocations: 0.5873 MB / 468.2 MB, free: 2.965 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007558/0.3372, allocations: 0.559 MB / 468.7 MB, free: 2.402 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.907e-05/0.3373, allocations: 44 kB / 468.8 MB, free: 2.359 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004034/0.3413, allocations: 1.444 MB / 470.2 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001927/0.3415, allocations: 174.8 kB / 470.4 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007458/0.3423, allocations: 0.6792 MB / 471.1 MB, free: 60 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003588/0.3459, allocations: 2.225 MB / 473.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3459, allocations: 0 / 473.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3459, allocations: 0 / 473.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.3459, allocations: 0 / 473.3 MB, free: 13.82 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.00315/0.349, allocations: 1.994 MB / 475.3 MB, free: 11.79 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.3491, allocations: 11.97 kB / 475.3 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002489/0.3493, allocations: 202.7 kB / 475.5 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001958/0.3513, allocations: 1.257 MB / 476.8 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.3513, allocations: 24.64 kB / 476.8 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.479e-05/0.3514, allocations: 24 kB / 476.8 MB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009066/0.3523, allocations: 433.9 kB / 477.2 MB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.3523, allocations: 3.938 kB / 477.2 MB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.052e-05/0.3523, allocations: 11.98 kB / 477.3 MB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.796e-05/0.3524, allocations: 8 kB / 477.3 MB, free: 9.742 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.3534, allocations: 482.3 kB / 477.7 MB, free: 9.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002869/0.3563, allocations: 1.562 MB / 479.3 MB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000969/0.3572, allocations: 347.4 kB / 479.6 MB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000688/0.3579, allocations: 361.9 kB / 480 MB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01344/0.3714, allocations: 7.031 MB / 487 MB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006109/0.372, allocations: 271 kB / 487.3 MB, free: 15.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.094e-06/0.372, allocations: 0 / 487.3 MB, free: 15.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002029/0.374, allocations: 0.7586 MB / 488 MB, free: 14.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.3741, allocations: 71.28 kB / 488.1 MB, free: 14.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001843/0.3759, allocations: 1.452 MB / 489.6 MB, free: 13.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.053e-05/0.376, allocations: 37.69 kB / 489.6 MB, free: 13.04 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007244/0.3767, allocations: 0.7193 MB / 490.3 MB, free: 12.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.088e-05/0.3768, allocations: 99.25 kB / 490.4 MB, free: 12.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001801/0.377, allocations: 130 kB / 490.5 MB, free: 12.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.3771, allocations: 330 kB / 490.9 MB, free: 11.76 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004323/0.3776, allocations: 156.9 kB / 491 MB, free: 11.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005837/0.3782, allocations: 354.8 kB / 491.4 MB, free: 11.17 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.3792, allocations: 0.5378 MB / 491.9 MB, free: 10.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.3792, allocations: 7.938 kB / 491.9 MB, free: 10.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001471/0.3807, allocations: 0.7482 MB / 492.7 MB, free: 9.773 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.3807, allocations: 8 kB / 492.7 MB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.929e-05/0.3808, allocations: 44 kB / 492.7 MB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003349/0.3811, allocations: 133.2 kB / 492.8 MB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004173/0.3815, allocations: 115.8 kB / 493 MB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006882/0.3822, allocations: 0.685 MB / 493.6 MB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005194/0.3827, allocations: 71.59 kB / 493.7 MB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.802e-05/0.3828, allocations: 44.06 kB / 493.8 MB, free: 8.652 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.0003996/0.3832, allocations: 271.3 kB / 494 MB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002029/0.3834, allocations: 198.7 kB / 494.2 MB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001794/0.3852, allocations: 0.7386 MB / 494.9 MB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.3852, allocations: 0 / 494.9 MB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3852, allocations: 0 / 494.9 MB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3852, allocations: 4 kB / 495 MB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002272/0.3875, allocations: 1.283 MB / 496.2 MB, free: 6.078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.352e-05/0.3875, allocations: 32 kB / 496.3 MB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002555/0.3878, allocations: 51.95 kB / 496.3 MB, free: 5.996 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002405/0.388, allocations: 120.8 kB / 496.4 MB, free: 5.875 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.896e-05/0.3881, allocations: 23.94 kB / 496.5 MB, free: 5.852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006288/0.3887, allocations: 0.6694 MB / 497.1 MB, free: 5.156 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3887, allocations: 0 / 497.1 MB, free: 5.156 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.39, allocations: 0.7141 MB / 497.8 MB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004266/0.3904, allocations: 216.6 kB / 498.1 MB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/0.3905, allocations: 8 kB / 498.1 MB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004058/0.391, allocations: 23.97 kB / 498.1 MB, free: 4.172 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.3911, allocations: 51.88 kB / 498.1 MB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.115e-05/0.3911, allocations: 23.94 kB / 498.2 MB, free: 4.098 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001266/0.3924, allocations: 0.9571 MB / 499.1 MB, free: 3.121 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3924, allocations: 0 / 499.1 MB, free: 3.121 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008755/0.3933, allocations: 335.5 kB / 499.4 MB, free: 2.793 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.0008219/0.3941, allocations: 0.577 MB / 0.4883 GB, free: 2.207 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001232/0.3953, allocations: 0.4888 MB / 0.4888 GB, free: 1.707 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3953, allocations: 0 / 0.4888 GB, free: 1.707 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006408/0.396, allocations: 287.1 kB / 0.4891 GB, free: 1.418 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.3972, allocations: 310 kB / 0.4893 GB, free: 1.113 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003656/0.4009, allocations: 2.301 MB / 0.4916 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008454/0.4017, allocations: 1.149 MB / 0.4927 GB, free: 13.58 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001845/0.4019, allocations: 95.38 kB / 0.4928 GB, free: 13.49 MB / 414.1 MB Notification: Performance of SimCode: time 1.492e-06/0.4019, allocations: 0 / 0.4928 GB, free: 13.49 MB / 414.1 MB Notification: Performance of Templates: time 0.03601/0.4379, allocations: 25.99 MB / 0.5182 GB, free: 3.555 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/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] "" [Timeout remaining time 660] "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time [Calling sys.exit(0), Time elapsed: 8.73996180202812]