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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,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=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00112/0.00112, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.143/1.143, allocations: 205.1 MB / 223.8 MB, free: 8.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009091/0.0009091, allocations: 107.5 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008051/0.0008052, allocations: 35.95 kB / 327.2 MB, free: 332 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1875/0.1883, allocations: 46.63 MB / 373.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007567/0.1959, allocations: 7.689 MB / 381.5 MB, free: 39.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01429/0.2103, allocations: 18.67 MB / 400.2 MB, free: 23.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001002/0.2113, allocations: 31.75 kB / 400.2 MB, free: 23.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001925/0.2133, allocations: 0.7412 MB / 401 MB, free: 22.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004989/0.2183, allocations: 1.469 MB / 402.4 MB, free: 20.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002986/0.2213, allocations: 1.078 MB / 403.5 MB, free: 19.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003529/0.2249, allocations: 3.143 MB / 406.6 MB, free: 16.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002497/0.2251, allocations: 209.1 kB / 406.8 MB, free: 16.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003658/0.2255, allocations: 497.5 kB / 407.3 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003562/0.2259, allocations: 0.5434 MB / 407.9 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.707e-05/0.2259, allocations: 28 kB / 407.9 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002413/0.2284, allocations: 1.112 MB / 409 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.2285, allocations: 158.8 kB / 409.2 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000372/0.2289, allocations: 0.6676 MB / 409.8 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001878/0.2307, allocations: 2.176 MB / 412 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2308, allocations: 0 / 412 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2308, allocations: 0 / 412 MB, free: 11.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.2308, allocations: 0 / 412 MB, free: 11.16 MB / 298.7 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.002256/0.2331, allocations: 2.02 MB / 414 MB, free: 9.074 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.2331, allocations: 8.031 kB / 414 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/0.2333, allocations: 197.6 kB / 414.2 MB, free: 8.871 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001385/0.2346, allocations: 1.37 MB / 415.6 MB, free: 7.426 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.2347, allocations: 24.55 kB / 415.6 MB, free: 7.402 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.274e-05/0.2347, allocations: 27.91 kB / 415.7 MB, free: 7.375 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006825/0.2354, allocations: 425.2 kB / 416.1 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.2354, allocations: 0 / 416.1 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.637e-05/0.2355, allocations: 19.98 kB / 416.1 MB, free: 6.938 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.2355, allocations: 8 kB / 416.1 MB, free: 6.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008835/0.2364, allocations: 474 kB / 416.6 MB, free: 6.465 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001992/0.2384, allocations: 1.622 MB / 418.2 MB, free: 4.781 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007412/0.2392, allocations: 379.2 kB / 418.6 MB, free: 4.402 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005538/0.2397, allocations: 409.9 kB / 419 MB, free: 4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01301/0.2527, allocations: 15.24 MB / 434.2 MB, free: 2.688 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005708/0.2533, allocations: 263.9 kB / 434.5 MB, free: 2.418 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 1.984e-06/0.2534, allocations: 0 / 434.5 MB, free: 2.418 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001855/0.2552, allocations: 0.8419 MB / 435.3 MB, free: 1.547 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.2553, allocations: 55.41 kB / 435.3 MB, free: 1.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001519/0.2568, allocations: 1.46 MB / 436.8 MB, free: 15.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.047e-05/0.2568, allocations: 33.7 kB / 436.8 MB, free: 15.94 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005068/0.2573, allocations: 0.7265 MB / 437.6 MB, free: 15.21 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.854e-05/0.2574, allocations: 98.72 kB / 437.7 MB, free: 15.12 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000168/0.2576, allocations: 126 kB / 437.8 MB, free: 14.99 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.2577, allocations: 326 kB / 438.1 MB, free: 14.66 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004236/0.2582, allocations: 161 kB / 438.3 MB, free: 14.51 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005065/0.2587, allocations: 367.4 kB / 438.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009272/0.2596, allocations: 0.5372 MB / 439.2 MB, free: 13.42 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.2596, allocations: 4 kB / 439.2 MB, free: 13.42 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001312/0.2609, allocations: 0.7515 MB / 439.9 MB, free: 12.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.261, allocations: 8 kB / 439.9 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.057e-05/0.261, allocations: 36 kB / 440 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002993/0.2613, allocations: 148.7 kB / 440.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003894/0.2617, allocations: 107.8 kB / 440.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005427/0.2623, allocations: 0.6851 MB / 440.9 MB, free: 11.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004735/0.2628, allocations: 71.44 kB / 441 MB, free: 11.58 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.545e-05/0.2628, allocations: 36 kB / 441 MB, free: 11.54 MB / 330.7 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.0003228/0.2632, allocations: 269.7 kB / 441.3 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/0.2633, allocations: 185.8 kB / 441.4 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/0.2651, allocations: 0.7464 MB / 442.2 MB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.2652, allocations: 4 kB / 442.2 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2652, allocations: 0 / 442.2 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.2652, allocations: 0 / 442.2 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001972/0.2672, allocations: 1.319 MB / 443.5 MB, free: 8.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.121e-05/0.2672, allocations: 32 kB / 443.5 MB, free: 8.902 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002292/0.2674, allocations: 52 kB / 443.6 MB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002175/0.2677, allocations: 120.8 kB / 443.7 MB, free: 8.73 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.536e-05/0.2677, allocations: 19.98 kB / 443.7 MB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005513/0.2683, allocations: 0.6694 MB / 444.4 MB, free: 8.016 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2683, allocations: 4.062 kB / 444.4 MB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002139/0.2704, allocations: 1.775 MB / 446.2 MB, free: 6.164 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004113/0.2709, allocations: 278.8 kB / 446.5 MB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/0.271, allocations: 12 kB / 446.5 MB, free: 5.859 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003909/0.2714, allocations: 27.95 kB / 446.5 MB, free: 5.832 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.2715, allocations: 43.89 kB / 446.5 MB, free: 5.789 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.349e-05/0.2716, allocations: 27.94 kB / 446.6 MB, free: 5.762 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001138/0.2727, allocations: 0.9614 MB / 447.5 MB, free: 4.781 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2727, allocations: 0 / 447.5 MB, free: 4.781 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001021/0.2737, allocations: 331.8 kB / 447.8 MB, free: 4.457 MB / 330.7 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.0008228/0.2746, allocations: 0.5856 MB / 448.4 MB, free: 3.863 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001245/0.2758, allocations: 0.5096 MB / 448.9 MB, free: 3.344 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.2758, allocations: 0 / 448.9 MB, free: 3.344 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000647/0.2765, allocations: 293 kB / 449.2 MB, free: 3.047 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008617/0.2774, allocations: 247.2 kB / 449.5 MB, free: 2.801 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003345/0.2807, allocations: 2.844 MB / 452.3 MB, free: 15.9 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005705/0.2813, allocations: 1.164 MB / 453.5 MB, free: 14.71 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005609/0.2819, allocations: 195.9 kB / 453.7 MB, free: 14.51 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.282, allocations: 91.42 kB / 453.8 MB, free: 14.42 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.282, allocations: 4 kB / 453.8 MB, free: 14.42 MB / 346.7 MB Notification: Performance of Templates: time 0.02688/0.3089, allocations: 19.38 MB / 473.1 MB, free: 11.05 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile (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) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches