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.00172/0.00172, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.002377/0.002377, allocations: 213.3 kB / 24.48 MB, free: 3.961 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.436/1.436, allocations: 230.6 MB / 258.3 MB, free: 7.75 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.001554/0.001554, allocations: 47.91 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2772, allocations: 53.37 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008803/0.286, allocations: 6.925 MB / 439.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02205/0.3081, allocations: 16.71 MB / 456 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00158/0.3097, allocations: 102.8 kB / 456.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002573/0.3122, allocations: 0.754 MB / 456.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006734/0.319, allocations: 1.819 MB / 458.6 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004909/0.3239, allocations: 1.316 MB / 459.9 MB, free: 10.99 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006667/0.3305, allocations: 3.311 MB / 463.3 MB, free: 7.668 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003961/0.3309, allocations: 128.9 kB / 463.4 MB, free: 7.516 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001016/0.332, allocations: 0.5912 MB / 464 MB, free: 6.922 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007836/0.3327, allocations: 0.5629 MB / 464.5 MB, free: 6.355 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.737e-05/0.3328, allocations: 44 kB / 464.6 MB, free: 6.312 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00405/0.3369, allocations: 1.21 MB / 465.8 MB, free: 5.102 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002103/0.3371, allocations: 170.8 kB / 466 MB, free: 4.934 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006768/0.3378, allocations: 0.5045 MB / 466.5 MB, free: 4.426 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003987/0.3418, allocations: 2.233 MB / 468.7 MB, free: 2.184 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.3418, allocations: 0 / 468.7 MB, free: 2.184 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3418, allocations: 0 / 468.7 MB, free: 2.184 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.815e-05/0.3418, allocations: 0 / 468.7 MB, free: 2.184 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.003633/0.3454, allocations: 1.998 MB / 470.7 MB, free: 144 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.3455, allocations: 12.03 kB / 470.7 MB, free: 132 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002571/0.3457, allocations: 198.8 kB / 470.9 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002187/0.3479, allocations: 1.264 MB / 472.2 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.3479, allocations: 16.66 kB / 472.2 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9e-05/0.348, allocations: 28 kB / 472.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009697/0.349, allocations: 437.8 kB / 472.6 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.349, allocations: 3.938 kB / 472.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.485e-05/0.3491, allocations: 12 kB / 472.6 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.3491, allocations: 11.94 kB / 472.7 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.3502, allocations: 478.3 kB / 473.1 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002974/0.3532, allocations: 1.417 MB / 474.5 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009107/0.3541, allocations: 343.4 kB / 474.9 MB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000709/0.3548, allocations: 361.9 kB / 475.2 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01428/0.369, allocations: 6.996 MB / 482.2 MB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006761/0.3697, allocations: 263.1 kB / 482.5 MB, free: 3.984 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.655e-06/0.3697, allocations: 0 / 482.5 MB, free: 3.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002176/0.3719, allocations: 0.7586 MB / 483.2 MB, free: 3.215 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.905e-05/0.372, allocations: 67.33 kB / 483.3 MB, free: 3.137 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001897/0.3739, allocations: 1.463 MB / 484.8 MB, free: 1.637 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.392e-05/0.3739, allocations: 37.64 kB / 484.8 MB, free: 1.594 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006887/0.3746, allocations: 0.731 MB / 485.5 MB, free: 0.8594 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.3747, allocations: 99.22 kB / 485.6 MB, free: 0.7617 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002046/0.3749, allocations: 130 kB / 485.8 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.3751, allocations: 322 kB / 486.1 MB, free: 316 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000443/0.3755, allocations: 168.8 kB / 486.2 MB, free: 148 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006417/0.3762, allocations: 358.8 kB / 486.6 MB, free: 15.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.3772, allocations: 0.5339 MB / 487.1 MB, free: 15.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3772, allocations: 0 / 487.1 MB, free: 15.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001538/0.3788, allocations: 0.7525 MB / 487.9 MB, free: 14.31 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.3788, allocations: 8 kB / 487.9 MB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.325e-05/0.3789, allocations: 43.98 kB / 487.9 MB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000364/0.3792, allocations: 132.8 kB / 488.1 MB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004183/0.3797, allocations: 103.8 kB / 488.2 MB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007402/0.3804, allocations: 0.6891 MB / 488.8 MB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005889/0.381, allocations: 71.59 kB / 488.9 MB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.845e-05/0.3811, allocations: 32 kB / 488.9 MB, free: 13.21 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.0004486/0.3815, allocations: 273.6 kB / 489.2 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001977/0.3817, allocations: 198.7 kB / 489.4 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001801/0.3835, allocations: 0.7348 MB / 490.1 MB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.3835, allocations: 4 kB / 490.1 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3835, allocations: 0 / 490.1 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.3835, allocations: 3.984 kB / 490.2 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002261/0.3858, allocations: 1.211 MB / 491.4 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.152e-05/0.3858, allocations: 36.06 kB / 491.4 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002433/0.3861, allocations: 51.89 kB / 491.4 MB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002547/0.3863, allocations: 120.8 kB / 491.6 MB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.103e-05/0.3864, allocations: 19.98 kB / 491.6 MB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000629/0.387, allocations: 0.6694 MB / 492.3 MB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.387, allocations: 4.062 kB / 492.3 MB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.3884, allocations: 0.7179 MB / 493 MB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005051/0.3889, allocations: 212.6 kB / 493.2 MB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.389, allocations: 12 kB / 493.2 MB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004442/0.3895, allocations: 27.95 kB / 493.2 MB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.3896, allocations: 39.95 kB / 493.3 MB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.607e-05/0.3897, allocations: 20 kB / 493.3 MB, free: 8.742 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001312/0.391, allocations: 0.9649 MB / 494.2 MB, free: 7.758 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.391, allocations: 0 / 494.2 MB, free: 7.758 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009608/0.3919, allocations: 331.6 kB / 494.6 MB, free: 7.434 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.0009506/0.3929, allocations: 0.5692 MB / 495.1 MB, free: 6.855 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.3942, allocations: 0.4888 MB / 495.6 MB, free: 6.355 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3942, allocations: 8.125 kB / 495.6 MB, free: 6.348 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006415/0.3949, allocations: 272.8 kB / 495.9 MB, free: 6.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.3962, allocations: 317.6 kB / 496.2 MB, free: 5.758 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003785/0.4, allocations: 2.297 MB / 498.5 MB, free: 3.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005513/0.4005, allocations: 0.5705 MB / 499.1 MB, free: 2.801 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001815/0.4007, allocations: 91.42 kB / 499.2 MB, free: 2.711 MB / 398.1 MB Notification: Performance of SimCode: time 2.264e-06/0.4007, allocations: 4 kB / 499.2 MB, free: 2.707 MB / 398.1 MB Notification: Performance of Templates: time 0.03899/0.4397, allocations: 26.72 MB / 0.5136 GB, free: 8.047 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: 9.26012844700017]