Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001916/0.001916, allocations: 196.3 kB / 17.38 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 226.6 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007775/0.0007775, allocations: 107.7 kB / 296.8 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002174/0.0002174, allocations: 8 kB / 356.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2393, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.0069/0.2462, allocations: 7.067 MB / 415.1 MB, free: 20.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02215/0.2684, allocations: 17.7 MB / 432.8 MB, free: 2.891 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001258/0.2697, allocations: 35.69 kB / 432.8 MB, free: 2.855 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002486/0.2722, allocations: 0.7005 MB / 433.5 MB, free: 2.152 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005824/0.2781, allocations: 1.421 MB / 435 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004475/0.2826, allocations: 1.038 MB / 436 MB, free: 15.68 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006635/0.2893, allocations: 3.078 MB / 439.1 MB, free: 12.59 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005522/0.2898, allocations: 224.8 kB / 439.3 MB, free: 12.35 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009237/0.2908, allocations: 0.4898 MB / 439.8 MB, free: 11.86 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007198/0.2915, allocations: 0.5086 MB / 440.3 MB, free: 11.34 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001129/0.2916, allocations: 28 kB / 440.3 MB, free: 11.32 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004614/0.2963, allocations: 1.322 MB / 441.7 MB, free: 9.992 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000201/0.2965, allocations: 146.9 kB / 441.8 MB, free: 9.848 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009077/0.2974, allocations: 0.6464 MB / 442.4 MB, free: 9.191 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002134/0.2995, allocations: 1.554 MB / 444 MB, free: 7.633 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.2996, allocations: 0 / 444 MB, free: 7.633 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2996, allocations: 0 / 444 MB, free: 7.633 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.554e-05/0.2996, allocations: 0 / 444 MB, free: 7.633 MB / 314.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.003384/0.303, allocations: 1.791 MB / 445.8 MB, free: 5.781 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.3031, allocations: 15.97 kB / 445.8 MB, free: 5.766 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002812/0.3033, allocations: 185.8 kB / 446 MB, free: 5.582 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00253/0.3059, allocations: 1.377 MB / 447.4 MB, free: 4.133 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.3059, allocations: 12.56 kB / 447.4 MB, free: 4.121 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.306, allocations: 35.98 kB / 447.4 MB, free: 4.086 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.3072, allocations: 449.1 kB / 447.8 MB, free: 3.641 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.3073, allocations: 0 / 447.8 MB, free: 3.641 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.588e-05/0.3073, allocations: 15.98 kB / 447.9 MB, free: 3.625 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/0.3074, allocations: 8 kB / 447.9 MB, free: 3.617 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001456/0.3088, allocations: 0.502 MB / 448.4 MB, free: 3.117 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003538/0.3124, allocations: 1.639 MB / 450 MB, free: 1.406 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001227/0.3136, allocations: 415.3 kB / 450.4 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009876/0.3146, allocations: 433.8 kB / 450.8 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01756/0.3322, allocations: 15.52 MB / 466.4 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006194/0.3329, allocations: 279.1 kB / 466.6 MB, free: 14.61 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.385e-06/0.3329, allocations: 4 kB / 466.6 MB, free: 14.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.00198/0.3349, allocations: 0.9049 MB / 467.5 MB, free: 13.67 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.731e-05/0.3349, allocations: 55.41 kB / 467.6 MB, free: 13.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001552/0.3365, allocations: 1.44 MB / 469 MB, free: 12.13 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.572e-05/0.3365, allocations: 33.7 kB / 469.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005546/0.3371, allocations: 0.7148 MB / 469.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.63e-05/0.3372, allocations: 102.7 kB / 469.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-05/0.3372, allocations: 12 kB / 469.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.3373, allocations: 322 kB / 470.2 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004346/0.3378, allocations: 188.9 kB / 470.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005355/0.3383, allocations: 375.5 kB / 470.8 MB, free: 10.29 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009856/0.3393, allocations: 0.5767 MB / 471.3 MB, free: 9.621 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3393, allocations: 0 / 471.3 MB, free: 9.621 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00138/0.3407, allocations: 0.786 MB / 472.1 MB, free: 8.824 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.3407, allocations: 11.98 kB / 472.1 MB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-05/0.3408, allocations: 40 kB / 472.2 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002991/0.3411, allocations: 137.5 kB / 472.3 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003901/0.3415, allocations: 115.8 kB / 472.4 MB, free: 8.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005454/0.3421, allocations: 0.6863 MB / 473.1 MB, free: 7.812 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005002/0.3426, allocations: 75.5 kB / 473.2 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.76e-05/0.3427, allocations: 36 kB / 473.2 MB, free: 7.703 MB / 346.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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003666/0.343, allocations: 278.2 kB / 473.5 MB, free: 7.422 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001541/0.3432, allocations: 185.8 kB / 473.7 MB, free: 7.238 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001846/0.345, allocations: 0.7933 MB / 474.5 MB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.3451, allocations: 4 kB / 474.5 MB, free: 6.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3451, allocations: 0 / 474.5 MB, free: 6.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.3451, allocations: 7.984 kB / 474.5 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001981/0.3471, allocations: 1.346 MB / 475.8 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.818e-05/0.3471, allocations: 39.98 kB / 475.9 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002664/0.3474, allocations: 51.95 kB / 475.9 MB, free: 4.914 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002327/0.3476, allocations: 136.7 kB / 476 MB, free: 4.777 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.587e-05/0.3477, allocations: 16 kB / 476.1 MB, free: 4.762 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005085/0.3482, allocations: 0.6734 MB / 476.7 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3482, allocations: 0 / 476.7 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.3494, allocations: 0.7476 MB / 477.5 MB, free: 3.285 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003337/0.3498, allocations: 282.7 kB / 477.8 MB, free: 2.988 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.3499, allocations: 4 kB / 477.8 MB, free: 2.984 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004121/0.3503, allocations: 39.97 kB / 477.8 MB, free: 2.945 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.3504, allocations: 47.88 kB / 477.9 MB, free: 2.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-05/0.3505, allocations: 20 kB / 477.9 MB, free: 2.879 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001093/0.3516, allocations: 0.9415 MB / 478.8 MB, free: 1.918 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3516, allocations: 0 / 478.8 MB, free: 1.918 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007919/0.3524, allocations: 327.8 kB / 479.1 MB, free: 1.598 MB / 346.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007484/0.3532, allocations: 0.5734 MB / 479.7 MB, free: 1.016 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001226/0.3544, allocations: 0.5589 MB / 480.3 MB, free: 456 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3544, allocations: 0 / 480.3 MB, free: 456 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006359/0.3551, allocations: 311.5 kB / 480.6 MB, free: 132 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.3564, allocations: 294.9 kB / 480.9 MB, free: 15.83 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003241/0.3597, allocations: 2.557 MB / 483.4 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000583/0.3603, allocations: 1.149 MB / 484.6 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.3604, allocations: 87.44 kB / 484.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.3604, allocations: 0 / 484.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of Templates: time 0.03075/0.3912, allocations: 25.6 MB / 0.4983 GB, free: 2.41 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","../files/Modelica_trunk_cpp_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