Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001654/0.001654, allocations: 115.5 kB / 21.18 MB, free: 0.5898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001482/0.001482, allocations: 210.2 kB / 24.47 MB, free: 3.996 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.371/1.371, allocations: 230.4 MB / 258.1 MB, free: 8.145 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 67.84 kB / 378.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2707, allocations: 53.33 MB / 432 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009522/0.2802, allocations: 8.081 MB / 440.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02353/0.3037, allocations: 19.54 MB / 459.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001169/0.3049, allocations: 63.44 kB / 459.7 MB, free: 11.58 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002422/0.3073, allocations: 0.8535 MB / 460.6 MB, free: 10.72 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006614/0.3139, allocations: 1.837 MB / 462.4 MB, free: 8.875 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004576/0.3185, allocations: 1.359 MB / 463.8 MB, free: 7.512 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005382/0.3239, allocations: 3.304 MB / 467.1 MB, free: 4.195 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003103/0.3242, allocations: 128.7 kB / 467.2 MB, free: 4.047 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007865/0.325, allocations: 0.5639 MB / 467.8 MB, free: 3.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007268/0.3257, allocations: 0.5629 MB / 468.3 MB, free: 2.914 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.56e-05/0.3258, allocations: 40 kB / 468.4 MB, free: 2.875 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004278/0.3301, allocations: 1.455 MB / 469.8 MB, free: 1.418 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002136/0.3303, allocations: 170.8 kB / 470 MB, free: 1.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007993/0.3311, allocations: 0.6754 MB / 470.7 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003468/0.3345, allocations: 2.217 MB / 472.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.3346, allocations: 4 kB / 472.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3346, allocations: 0 / 472.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.669e-05/0.3346, allocations: 4 kB / 472.9 MB, free: 14.34 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.003396/0.338, allocations: 2.074 MB / 475 MB, free: 12.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.338, allocations: 8.031 kB / 475 MB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002681/0.3383, allocations: 202.7 kB / 475.2 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002123/0.3404, allocations: 1.367 MB / 476.5 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/0.3404, allocations: 16.56 kB / 476.6 MB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.814e-05/0.3405, allocations: 32 kB / 476.6 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009461/0.3415, allocations: 433.2 kB / 477 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.3415, allocations: 3.938 kB / 477 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.565e-05/0.3415, allocations: 11.94 kB / 477 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.841e-05/0.3415, allocations: 12 kB / 477 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.3426, allocations: 478.1 kB / 477.5 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003301/0.3459, allocations: 1.615 MB / 479.1 MB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009646/0.3469, allocations: 339.4 kB / 479.4 MB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000786/0.3477, allocations: 373.8 kB / 479.8 MB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01788/0.3656, allocations: 15.52 MB / 495.3 MB, free: 5.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006825/0.3663, allocations: 267.6 kB / 495.6 MB, free: 5.246 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.514e-06/0.3663, allocations: 0 / 495.6 MB, free: 5.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002316/0.3686, allocations: 0.8418 MB / 496.4 MB, free: 4.375 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.3686, allocations: 63.33 kB / 496.5 MB, free: 4.301 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001971/0.3706, allocations: 1.452 MB / 498 MB, free: 2.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.506e-05/0.3707, allocations: 37.7 kB / 498 MB, free: 2.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006617/0.3713, allocations: 0.7232 MB / 498.7 MB, free: 2.043 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.3714, allocations: 103.1 kB / 498.8 MB, free: 1.941 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/0.3716, allocations: 134 kB / 498.9 MB, free: 1.805 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.3718, allocations: 322 kB / 499.3 MB, free: 1.484 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004537/0.3722, allocations: 161 kB / 499.4 MB, free: 1.328 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006142/0.3728, allocations: 363.4 kB / 499.8 MB, free: 0.8789 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/0.3739, allocations: 0.5295 MB / 0.4886 GB, free: 264 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3739, allocations: 0 / 0.4886 GB, free: 264 kB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001634/0.3755, allocations: 0.7562 MB / 0.4893 GB, free: 15.49 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.3756, allocations: 10.81 kB / 0.4893 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.027e-05/0.3756, allocations: 40 kB / 0.4894 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003502/0.376, allocations: 140.7 kB / 0.4895 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000437/0.3764, allocations: 108.1 kB / 0.4896 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007173/0.3771, allocations: 0.6812 MB / 0.4903 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006051/0.3777, allocations: 75.58 kB / 0.4903 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.11e-05/0.3778, allocations: 36 kB / 0.4904 GB, free: 14.38 MB / 414.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.0004458/0.3783, allocations: 269.7 kB / 0.4906 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002096/0.3785, allocations: 202.7 kB / 0.4908 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/0.3802, allocations: 0.7308 MB / 0.4915 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.3803, allocations: 4 kB / 0.4915 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3803, allocations: 0 / 0.4915 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.3803, allocations: 3.984 kB / 0.4915 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002369/0.3826, allocations: 1.315 MB / 0.4928 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-05/0.3827, allocations: 36 kB / 0.4929 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002534/0.3829, allocations: 44.02 kB / 0.4929 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000246/0.3832, allocations: 128.8 kB / 0.493 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.864e-05/0.3832, allocations: 19.94 kB / 0.493 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006315/0.3839, allocations: 0.6694 MB / 0.4937 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3839, allocations: 8.094 kB / 0.4937 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001351/0.3852, allocations: 0.7101 MB / 0.4944 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004995/0.3857, allocations: 291.7 kB / 0.4947 GB, free: 9.801 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/0.3859, allocations: 8 kB / 0.4947 GB, free: 9.793 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004124/0.3863, allocations: 23.97 kB / 0.4947 GB, free: 9.77 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.3864, allocations: 43.89 kB / 0.4948 GB, free: 9.727 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-05/0.3865, allocations: 24 kB / 0.4948 GB, free: 9.703 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001287/0.3877, allocations: 0.9649 MB / 0.4957 GB, free: 8.719 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3877, allocations: 0 / 0.4957 GB, free: 8.719 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009488/0.3887, allocations: 327.6 kB / 0.496 GB, free: 8.398 MB / 414.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.000927/0.3896, allocations: 0.577 MB / 0.4966 GB, free: 7.805 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001401/0.391, allocations: 0.4959 MB / 0.4971 GB, free: 7.297 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.391, allocations: 0 / 0.4971 GB, free: 7.297 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006766/0.3917, allocations: 291.4 kB / 0.4974 GB, free: 7.004 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001379/0.3931, allocations: 314.8 kB / 0.4977 GB, free: 6.691 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003945/0.397, allocations: 2.287 MB / 0.4999 GB, free: 4.355 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007819/0.3978, allocations: 1.149 MB / 0.501 GB, free: 3.176 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.398, allocations: 91.44 kB / 0.5011 GB, free: 3.086 MB / 414.1 MB Notification: Performance of SimCode: time 9.71e-07/0.398, allocations: 0 / 0.5011 GB, free: 3.086 MB / 414.1 MB Notification: Performance of Templates: time 0.03753/0.4355, allocations: 26.01 MB / 0.5265 GB, free: 9.141 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.12118530785665]