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.001629/0.001629, allocations: 101 kB / 17.59 MB, free: 5.426 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.001137/0.001137, allocations: 187.3 kB / 18.51 MB, free: 4.504 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.349/1.349, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009968/0.0009969, allocations: 39.59 kB / 301.3 MB, free: 5.914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07856/0.07958, allocations: 49.46 MB / 350.7 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007957/0.08758, allocations: 8.018 MB / 358.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1889/0.2765, allocations: 19.42 MB / 378.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001458/0.278, allocations: 33.31 kB / 378.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002804/0.2809, allocations: 0.8534 MB / 379.1 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007122/0.288, allocations: 1.799 MB / 380.9 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005116/0.2932, allocations: 1.334 MB / 382.2 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006443/0.2996, allocations: 3.249 MB / 385.4 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000608/0.3003, allocations: 221.8 kB / 385.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00136/0.3017, allocations: 0.5444 MB / 386.2 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007699/0.3024, allocations: 0.5606 MB / 386.8 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001247/0.3026, allocations: 40.72 kB / 386.8 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006252/0.3088, allocations: 1.446 MB / 388.2 MB, free: 6.824 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000355/0.3092, allocations: 166.2 kB / 388.4 MB, free: 6.715 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.3104, allocations: 0.6854 MB / 389.1 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005904/0.3164, allocations: 2.191 MB / 391.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.3164, allocations: 0 / 391.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3164, allocations: 5.094 kB / 391.3 MB, free: 5.559 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.84e-05/0.3164, allocations: 0 / 391.3 MB, free: 5.559 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.003543/0.32, allocations: 2.012 MB / 393.3 MB, free: 4.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.3201, allocations: 9 kB / 393.3 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002615/0.3203, allocations: 190.9 kB / 393.5 MB, free: 4.105 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001777/0.3221, allocations: 1.368 MB / 394.9 MB, free: 3.195 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.3221, allocations: 15.25 kB / 394.9 MB, free: 3.191 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.306e-05/0.3222, allocations: 29.41 kB / 394.9 MB, free: 3.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009006/0.3231, allocations: 433 kB / 395.3 MB, free: 2.922 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.3232, allocations: 0.875 kB / 395.3 MB, free: 2.922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.448e-05/0.3232, allocations: 11.09 kB / 395.3 MB, free: 2.914 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.3232, allocations: 18.83 kB / 395.4 MB, free: 2.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/0.3243, allocations: 475.6 kB / 395.8 MB, free: 2.715 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002404/0.3267, allocations: 1.617 MB / 397.4 MB, free: 1.562 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008653/0.3275, allocations: 375.8 kB / 397.8 MB, free: 1.359 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006503/0.3282, allocations: 420.3 kB / 398.2 MB, free: 1.172 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01518/0.3434, allocations: 15.19 MB / 413.4 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006397/0.3441, allocations: 263.6 kB / 413.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.955e-06/0.3441, allocations: 0 / 413.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002239/0.3463, allocations: 0.8351 MB / 414.5 MB, free: 396 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.7e-05/0.3464, allocations: 59.34 kB / 414.6 MB, free: 324 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.3482, allocations: 1.46 MB / 416 MB, free: 14.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.564e-05/0.3483, allocations: 33.7 kB / 416.1 MB, free: 14.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005951/0.3489, allocations: 0.717 MB / 416.8 MB, free: 14.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.424e-05/0.349, allocations: 94.11 kB / 416.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002103/0.3492, allocations: 126 kB / 417 MB, free: 13.83 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.3493, allocations: 333.8 kB / 417.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004715/0.3498, allocations: 165 kB / 417.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006304/0.3505, allocations: 363 kB / 417.8 MB, free: 12.9 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001162/0.3516, allocations: 0.5371 MB / 418.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.3517, allocations: 0 / 418.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001976/0.3537, allocations: 0.7496 MB / 419.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.3537, allocations: 8 kB / 419.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.449e-05/0.3538, allocations: 44 kB / 419.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003607/0.3542, allocations: 133.2 kB / 419.3 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004068/0.3546, allocations: 111.8 kB / 419.4 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000664/0.3552, allocations: 0.6811 MB / 420.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008963/0.3562, allocations: 71.41 kB / 420.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.576e-05/0.3562, allocations: 36 kB / 420.2 MB, free: 10.41 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.0005357/0.3568, allocations: 273.7 kB / 420.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002114/0.357, allocations: 181.8 kB / 420.6 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/0.359, allocations: 0.7484 MB / 421.4 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.359, allocations: 4 kB / 421.4 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.359, allocations: 0 / 421.4 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.359, allocations: 0 / 421.4 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/0.3615, allocations: 1.3 MB / 422.7 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.104e-05/0.3615, allocations: 43.94 kB / 422.7 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000258/0.3618, allocations: 51.94 kB / 422.8 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002371/0.362, allocations: 116.8 kB / 422.9 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.856e-05/0.3621, allocations: 23.98 kB / 422.9 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005467/0.3626, allocations: 0.6733 MB / 423.6 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3626, allocations: 0 / 423.6 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.3639, allocations: 0.7094 MB / 424.3 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004433/0.3644, allocations: 274.8 kB / 424.6 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001612/0.3645, allocations: 15.97 kB / 424.6 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004152/0.365, allocations: 23.97 kB / 424.6 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.3651, allocations: 47.95 kB / 424.7 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-05/0.3652, allocations: 17.12 kB / 424.7 MB, free: 5.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001352/0.3666, allocations: 0.961 MB / 425.6 MB, free: 4.789 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3666, allocations: 0 / 425.6 MB, free: 4.789 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009996/0.3676, allocations: 335.8 kB / 426 MB, free: 4.461 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.0008944/0.3685, allocations: 0.5643 MB / 426.5 MB, free: 3.988 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001433/0.3699, allocations: 0.5246 MB / 427.1 MB, free: 3.453 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3699, allocations: 0 / 427.1 MB, free: 3.453 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006721/0.3706, allocations: 300.2 kB / 427.3 MB, free: 3.152 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001576/0.3722, allocations: 325.2 kB / 427.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003726/0.376, allocations: 2.294 MB / 430 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006534/0.3766, allocations: 1.145 MB / 431.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001716/0.3768, allocations: 95.44 kB / 431.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3768, allocations: 0 / 431.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of Templates: time 0.03547/0.4123, allocations: 25.75 MB / 457 MB, free: 5.547 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