Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 106 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 181.2 kB / 24.46 MB, free: 4.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.399/1.399, allocations: 207.6 MB / 235.2 MB, free: 10.03 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001845/0.001845, allocations: 55.92 kB / 347.6 MB, free: 9.582 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.253, allocations: 49.16 MB / 396.8 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006817/0.2598, allocations: 7.75 MB / 404.6 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02124/0.281, allocations: 18.6 MB / 423.2 MB, free: 5.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001504/0.2825, allocations: 99.34 kB / 423.2 MB, free: 5.617 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002612/0.2852, allocations: 0.8278 MB / 424.1 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007769/0.2929, allocations: 1.822 MB / 425.9 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005133/0.2981, allocations: 1.297 MB / 427.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006054/0.3041, allocations: 3.206 MB / 430.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004017/0.3045, allocations: 134.4 kB / 430.5 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001069/0.3056, allocations: 0.5385 MB / 431.1 MB, free: 0.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007384/0.3063, allocations: 0.555 MB / 431.6 MB, free: 432 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.395e-05/0.3064, allocations: 40.34 kB / 431.7 MB, free: 432 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003921/0.3103, allocations: 1.127 MB / 432.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001948/0.3105, allocations: 166.8 kB / 433 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00079/0.3113, allocations: 0.6832 MB / 433.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003702/0.315, allocations: 2.241 MB / 435.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.315, allocations: 0 / 435.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.315, allocations: 4 kB / 435.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.973e-05/0.315, allocations: 0 / 435.9 MB, free: 12.22 MB / 350.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.3182, allocations: 2.006 MB / 437.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.3182, allocations: 15.92 kB / 437.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002351/0.3185, allocations: 206.7 kB / 438.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001926/0.3204, allocations: 1.264 MB / 439.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/0.3204, allocations: 24.58 kB / 439.4 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.755e-05/0.3205, allocations: 28 kB / 439.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000911/0.3214, allocations: 437.8 kB / 439.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.3214, allocations: 0 / 439.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.924e-05/0.3215, allocations: 8 kB / 439.9 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.3215, allocations: 12 kB / 439.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.3226, allocations: 478.3 kB / 440.3 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002725/0.3253, allocations: 1.566 MB / 441.9 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009103/0.3262, allocations: 347.3 kB / 442.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007368/0.3269, allocations: 369.9 kB / 442.6 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01333/0.3403, allocations: 7.039 MB / 449.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006874/0.341, allocations: 255.2 kB / 449.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.324e-06/0.341, allocations: 0 / 449.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002228/0.3432, allocations: 0.7749 MB / 450.7 MB, free: 13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/0.3432, allocations: 55.41 kB / 450.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001803/0.345, allocations: 1.464 MB / 452.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.501e-05/0.3451, allocations: 37.7 kB / 452.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006552/0.3457, allocations: 0.7272 MB / 452.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001/0.3458, allocations: 99.16 kB / 453 MB, free: 10.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001869/0.346, allocations: 130 kB / 453.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.3462, allocations: 326 kB / 453.5 MB, free: 10.1 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004596/0.3466, allocations: 164.8 kB / 453.7 MB, free: 9.941 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006062/0.3472, allocations: 358.8 kB / 454 MB, free: 9.496 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.3483, allocations: 0.541 MB / 454.5 MB, free: 8.863 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.3483, allocations: 0 / 454.5 MB, free: 8.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001503/0.3498, allocations: 0.7595 MB / 455.3 MB, free: 8.094 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.3498, allocations: 8 kB / 455.3 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-05/0.3499, allocations: 40.84 kB / 455.3 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003257/0.3502, allocations: 136.8 kB / 455.5 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004366/0.3506, allocations: 103.8 kB / 455.6 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006838/0.3513, allocations: 0.6888 MB / 456.3 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005727/0.3519, allocations: 75.69 kB / 456.3 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.94e-05/0.352, allocations: 36 kB / 456.4 MB, free: 6.984 MB / 366.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.0004411/0.3524, allocations: 269.7 kB / 456.6 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002089/0.3526, allocations: 202.7 kB / 456.8 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00181/0.3544, allocations: 0.7424 MB / 457.6 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3544, allocations: 8 kB / 457.6 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3544, allocations: 0 / 457.6 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3544, allocations: 3.984 kB / 457.6 MB, free: 5.746 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002224/0.3567, allocations: 1.284 MB / 458.9 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.512e-05/0.3567, allocations: 32 kB / 458.9 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000242/0.357, allocations: 47.95 kB / 459 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002562/0.3572, allocations: 132.8 kB / 459.1 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.667e-05/0.3572, allocations: 16 kB / 459.1 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006369/0.3579, allocations: 0.6733 MB / 459.8 MB, free: 3.473 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3579, allocations: 0 / 459.8 MB, free: 3.473 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.3592, allocations: 0.7291 MB / 460.5 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003871/0.3596, allocations: 216.5 kB / 460.7 MB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001436/0.3597, allocations: 4 kB / 460.7 MB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004149/0.3602, allocations: 31.95 kB / 460.8 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.3603, allocations: 39.95 kB / 460.8 MB, free: 2.426 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.676e-05/0.3603, allocations: 24.06 kB / 460.8 MB, free: 2.402 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001269/0.3616, allocations: 0.9653 MB / 461.8 MB, free: 1.418 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3616, allocations: 0 / 461.8 MB, free: 1.418 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009405/0.3625, allocations: 339.6 kB / 462.1 MB, free: 1.086 MB / 366.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.0008669/0.3634, allocations: 0.5736 MB / 462.7 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001295/0.3647, allocations: 0.4927 MB / 463.2 MB, free: 0 / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-05/0.3647, allocations: 48 / 463.2 MB, free: 16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006421/0.3654, allocations: 279.2 kB / 463.5 MB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009502/0.3663, allocations: 259.1 kB / 463.7 MB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003684/0.37, allocations: 2.26 MB / 466 MB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008717/0.3709, allocations: 1.16 MB / 467.1 MB, free: 11.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005482/0.3714, allocations: 203.9 kB / 467.3 MB, free: 11.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001539/0.3716, allocations: 91.44 kB / 467.4 MB, free: 11.67 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3716, allocations: 0 / 467.4 MB, free: 11.67 MB / 382.1 MB Notification: Performance of Templates: time 0.03607/0.4076, allocations: 20.27 MB / 487.7 MB, free: 7.363 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.105782767757773]