Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000785/0.000785, allocations: 94.69 kB / 17.31 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008335/0.0008334, allocations: 179.2 kB / 18.21 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.167/1.167, allocations: 223.3 MB / 242.2 MB, free: 172 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002035/0.0002034, allocations: 4 kB / 302.1 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06962/0.06983, allocations: 50.41 MB / 352.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005741/0.0756, allocations: 7.554 MB / 360 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1431/0.2187, allocations: 19.33 MB / 379.4 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008193/0.2195, allocations: 34.53 kB / 379.4 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001847/0.2214, allocations: 0.7816 MB / 380.2 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004227/0.2256, allocations: 1.493 MB / 381.7 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003059/0.2287, allocations: 1.108 MB / 382.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003744/0.2325, allocations: 3.196 MB / 386 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002715/0.2328, allocations: 212.6 kB / 386.2 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005288/0.2333, allocations: 0.5275 MB / 386.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004639/0.2338, allocations: 0.5421 MB / 387.3 MB, free: 7.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.234e-05/0.2338, allocations: 22.66 kB / 387.3 MB, free: 7.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00284/0.2367, allocations: 1.442 MB / 388.7 MB, free: 7.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.2368, allocations: 152.4 kB / 388.9 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004057/0.2372, allocations: 0.6822 MB / 389.6 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001157/0.2384, allocations: 1.558 MB / 391.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.2384, allocations: 0 / 391.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2384, allocations: 2.391 kB / 391.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.2384, allocations: 0 / 391.1 MB, free: 6.637 MB / 302.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.002021/0.2404, allocations: 1.798 MB / 392.9 MB, free: 5.414 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.2405, allocations: 8.406 kB / 392.9 MB, free: 5.414 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.2406, allocations: 192.6 kB / 393.1 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.2419, allocations: 1.362 MB / 394.5 MB, free: 4.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.242, allocations: 18.53 kB / 394.5 MB, free: 4.418 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.961e-05/0.242, allocations: 39.88 kB / 394.5 MB, free: 4.398 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007363/0.2428, allocations: 450.5 kB / 395 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.2428, allocations: 0 / 395 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.769e-05/0.2428, allocations: 9.906 kB / 395 MB, free: 4.145 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.2429, allocations: 15.27 kB / 395 MB, free: 4.137 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009333/0.2438, allocations: 0.5022 MB / 395.5 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.2458, allocations: 1.64 MB / 397.1 MB, free: 2.793 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007931/0.2466, allocations: 419 kB / 397.5 MB, free: 2.586 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005961/0.2472, allocations: 432.3 kB / 398 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01116/0.2584, allocations: 15.22 MB / 413.2 MB, free: 3.059 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000552/0.2589, allocations: 287 kB / 413.5 MB, free: 2.766 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.593e-06/0.259, allocations: 0 / 413.5 MB, free: 2.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001852/0.2608, allocations: 0.9019 MB / 414.4 MB, free: 1.836 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/0.2609, allocations: 59.34 kB / 414.4 MB, free: 1.766 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001408/0.2623, allocations: 1.459 MB / 415.9 MB, free: 276 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.515e-05/0.2623, allocations: 33.7 kB / 415.9 MB, free: 236 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005025/0.2628, allocations: 0.7184 MB / 416.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.658e-05/0.2629, allocations: 90.75 kB / 416.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.126e-05/0.263, allocations: 53.62 kB / 416.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.689e-05/0.2631, allocations: 325.9 kB / 417.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004727/0.2636, allocations: 181 kB / 417.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005314/0.2641, allocations: 383.4 kB / 417.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009578/0.2651, allocations: 0.5829 MB / 418.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.2651, allocations: 0 / 418.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001324/0.2664, allocations: 0.7867 MB / 419 MB, free: 12.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.2664, allocations: 8 kB / 419 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.148e-05/0.2665, allocations: 47.98 kB / 419.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002584/0.2668, allocations: 128.8 kB / 419.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003776/0.2671, allocations: 124.2 kB / 419.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005102/0.2677, allocations: 0.6754 MB / 420 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004787/0.2681, allocations: 83.53 kB / 420.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.564e-05/0.2682, allocations: 32 kB / 420.1 MB, free: 11.81 MB / 334.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.0003189/0.2685, allocations: 281.6 kB / 420.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.2687, allocations: 189.8 kB / 420.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/0.2705, allocations: 0.7879 MB / 421.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.2705, allocations: 4 kB / 421.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.2705, allocations: 0 / 421.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.2705, allocations: 0 / 421.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001882/0.2724, allocations: 1.346 MB / 422.7 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.062e-05/0.2725, allocations: 36.06 kB / 422.7 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002402/0.2727, allocations: 64.75 kB / 422.8 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001982/0.2729, allocations: 116.8 kB / 422.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.386e-05/0.273, allocations: 27.98 kB / 422.9 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004623/0.2734, allocations: 0.6674 MB / 423.6 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.2734, allocations: 8.016 kB / 423.6 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/0.2746, allocations: 0.7477 MB / 424.4 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000287/0.2749, allocations: 276.7 kB / 424.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001354/0.275, allocations: 11.98 kB / 424.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004116/0.2755, allocations: 35.97 kB / 424.7 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.519e-05/0.2756, allocations: 39.95 kB / 424.7 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.818e-05/0.2756, allocations: 24 kB / 424.7 MB, free: 7.008 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009735/0.2766, allocations: 0.961 MB / 425.7 MB, free: 6.027 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2766, allocations: 0 / 425.7 MB, free: 6.027 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006696/0.2773, allocations: 327.8 kB / 426 MB, free: 5.707 MB / 334.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.0006628/0.2779, allocations: 0.5752 MB / 426.6 MB, free: 5.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001132/0.2791, allocations: 0.5552 MB / 427.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2791, allocations: 8.062 kB / 427.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006031/0.2797, allocations: 321.9 kB / 427.5 MB, free: 4.332 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.281, allocations: 298.7 kB / 427.8 MB, free: 4.035 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003008/0.284, allocations: 2.725 MB / 430.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005405/0.2846, allocations: 1.149 MB / 431.6 MB, free: 88 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.2847, allocations: 87.44 kB / 431.7 MB, free: 0 / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2847, allocations: 0 / 431.7 MB, free: 0 / 334.1 MB Notification: Performance of Templates: time 0.027/0.3117, allocations: 25.57 MB / 457.3 MB, free: 6.512 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time