Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001645/0.001645, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001771/0.001771, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 230.3 MB / 258 MB, free: 8.215 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 63.89 kB / 378.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2445, allocations: 53.36 MB / 432.1 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009266/0.2538, allocations: 8.072 MB / 440.2 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02317/0.277, allocations: 19.56 MB / 459.7 MB, free: 11.37 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001036/0.278, allocations: 94.94 kB / 459.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002177/0.2802, allocations: 0.8581 MB / 460.7 MB, free: 10.42 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004987/0.2852, allocations: 1.827 MB / 462.5 MB, free: 8.578 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00362/0.2888, allocations: 1.363 MB / 463.9 MB, free: 7.215 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004927/0.2937, allocations: 3.322 MB / 467.2 MB, free: 3.883 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002975/0.294, allocations: 128.9 kB / 467.3 MB, free: 3.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007037/0.2947, allocations: 0.5911 MB / 467.9 MB, free: 3.137 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006366/0.2953, allocations: 0.5591 MB / 468.5 MB, free: 2.574 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.806e-05/0.2954, allocations: 40 kB / 468.5 MB, free: 2.535 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003248/0.2987, allocations: 1.444 MB / 470 MB, free: 1.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001825/0.2989, allocations: 174.8 kB / 470.1 MB, free: 0.918 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006449/0.2995, allocations: 0.6754 MB / 470.8 MB, free: 244 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003033/0.3025, allocations: 2.221 MB / 473 MB, free: 14.01 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3026, allocations: 0 / 473 MB, free: 14.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3026, allocations: 4 kB / 473 MB, free: 14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.721e-05/0.3026, allocations: 4 kB / 473 MB, free: 14 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.003129/0.3057, allocations: 1.994 MB / 475 MB, free: 11.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.3057, allocations: 8.031 kB / 475 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002463/0.306, allocations: 206.7 kB / 475.2 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001952/0.3079, allocations: 1.253 MB / 476.5 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.308, allocations: 24.59 kB / 476.5 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.663e-05/0.308, allocations: 24 kB / 476.5 MB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009564/0.309, allocations: 433.8 kB / 477 MB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.309, allocations: 3.938 kB / 477 MB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.466e-05/0.3091, allocations: 16 kB / 477 MB, free: 9.926 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.3091, allocations: 11.98 kB / 477 MB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/0.3102, allocations: 474.4 kB / 477.5 MB, free: 9.449 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002793/0.313, allocations: 1.566 MB / 479 MB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009659/0.314, allocations: 343.4 kB / 479.4 MB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007636/0.3148, allocations: 369.8 kB / 479.7 MB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01236/0.3271, allocations: 7.027 MB / 486.7 MB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006415/0.3278, allocations: 259.2 kB / 487 MB, free: 15.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.354e-06/0.3278, allocations: 0 / 487 MB, free: 15.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.00216/0.3299, allocations: 0.7703 MB / 487.8 MB, free: 14.83 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.23e-05/0.33, allocations: 67.27 kB / 487.8 MB, free: 14.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001707/0.3317, allocations: 1.455 MB / 489.3 MB, free: 13.26 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.919e-05/0.3317, allocations: 29.7 kB / 489.3 MB, free: 13.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000645/0.3324, allocations: 0.7232 MB / 490 MB, free: 12.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.099e-05/0.3325, allocations: 91.27 kB / 490.1 MB, free: 12.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001822/0.3326, allocations: 134 kB / 490.3 MB, free: 12.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.3328, allocations: 326 kB / 490.6 MB, free: 11.95 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000471/0.3332, allocations: 160.9 kB / 490.7 MB, free: 11.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006377/0.3339, allocations: 362.8 kB / 491.1 MB, free: 11.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.335, allocations: 0.5415 MB / 491.6 MB, free: 10.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.335, allocations: 4 kB / 491.6 MB, free: 10.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001494/0.3365, allocations: 0.7479 MB / 492.4 MB, free: 9.949 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.3365, allocations: 8 kB / 492.4 MB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-05/0.3365, allocations: 47.97 kB / 492.4 MB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003434/0.3369, allocations: 133.6 kB / 492.6 MB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004349/0.3373, allocations: 107.8 kB / 492.7 MB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007131/0.338, allocations: 0.6811 MB / 493.4 MB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005275/0.3386, allocations: 75.66 kB / 493.4 MB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.228e-05/0.3386, allocations: 32 kB / 493.5 MB, free: 8.844 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.0003997/0.339, allocations: 281.3 kB / 493.7 MB, free: 8.562 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002001/0.3392, allocations: 198.7 kB / 493.9 MB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001875/0.3411, allocations: 0.7347 MB / 494.7 MB, free: 7.617 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.333e-06/0.3411, allocations: 4 kB / 494.7 MB, free: 7.613 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3411, allocations: 3.938 kB / 494.7 MB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.3411, allocations: 0 / 494.7 MB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002356/0.3435, allocations: 1.284 MB / 496 MB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.982e-05/0.3435, allocations: 35.98 kB / 496 MB, free: 6.227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002496/0.3438, allocations: 47.95 kB / 496 MB, free: 6.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002391/0.344, allocations: 120.8 kB / 496.2 MB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.159e-05/0.3441, allocations: 27.86 kB / 496.2 MB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005951/0.3446, allocations: 0.6735 MB / 496.9 MB, free: 5.332 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.3446, allocations: 0 / 496.9 MB, free: 5.332 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001344/0.346, allocations: 0.7102 MB / 497.6 MB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004329/0.3464, allocations: 216.5 kB / 497.8 MB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001501/0.3466, allocations: 11.98 kB / 497.8 MB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004254/0.347, allocations: 27.97 kB / 497.8 MB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.3471, allocations: 43.89 kB / 497.9 MB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.285e-05/0.3472, allocations: 23.98 kB / 497.9 MB, free: 4.277 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001199/0.3484, allocations: 0.9571 MB / 498.8 MB, free: 3.301 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3484, allocations: 0 / 498.8 MB, free: 3.301 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000843/0.3492, allocations: 331.6 kB / 499.2 MB, free: 2.977 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.0008375/0.35, allocations: 0.5732 MB / 499.7 MB, free: 2.395 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001318/0.3514, allocations: 0.4933 MB / 0.4885 GB, free: 1.891 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3514, allocations: 4.125 kB / 0.4885 GB, free: 1.887 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006816/0.352, allocations: 279.1 kB / 0.4888 GB, free: 1.602 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/0.3533, allocations: 313.5 kB / 0.4891 GB, free: 1.293 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003446/0.3568, allocations: 2.248 MB / 0.4913 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008349/0.3576, allocations: 1.16 MB / 0.4924 GB, free: 13.81 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005198/0.3581, allocations: 199.9 kB / 0.4926 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001626/0.3583, allocations: 91.44 kB / 0.4927 GB, free: 13.52 MB / 414.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3583, allocations: 0 / 0.4927 GB, free: 13.52 MB / 414.1 MB Notification: Performance of Templates: time 0.03742/0.3957, allocations: 20.21 MB / 0.5124 GB, free: 9.43 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.116992427967489]