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) 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) 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=3998,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=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001179/0.001179, allocations: 93.33 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00151/0.00151, allocations: 201.5 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002517/0.0002518, allocations: 7.984 kB / 308.4 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1076, allocations: 51.52 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.00715/0.1148, allocations: 7.567 MB / 367.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2064/0.3213, allocations: 19.35 MB / 386.8 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001132/0.3224, allocations: 35.25 kB / 386.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002402/0.3248, allocations: 0.7894 MB / 387.7 MB, free: 6.809 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006247/0.3311, allocations: 1.48 MB / 389.1 MB, free: 6.035 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004808/0.3359, allocations: 1.125 MB / 390.3 MB, free: 5.461 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005394/0.3414, allocations: 3.229 MB / 393.5 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004234/0.3418, allocations: 207.5 kB / 393.7 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009598/0.3428, allocations: 0.5298 MB / 394.2 MB, free: 3.938 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006248/0.3434, allocations: 0.5407 MB / 394.8 MB, free: 3.676 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.928e-05/0.3435, allocations: 22.94 kB / 394.8 MB, free: 3.676 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005127/0.3486, allocations: 1.441 MB / 396.2 MB, free: 3.227 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001821/0.3488, allocations: 154.2 kB / 396.4 MB, free: 3.125 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006971/0.3496, allocations: 0.6909 MB / 397.1 MB, free: 2.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001546/0.3511, allocations: 1.564 MB / 398.6 MB, free: 1.961 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3511, allocations: 1.375 kB / 398.6 MB, free: 1.961 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3511, allocations: 0 / 398.6 MB, free: 1.961 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.665e-05/0.3512, allocations: 0 / 398.6 MB, free: 1.961 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.002382/0.3535, allocations: 1.797 MB / 400.4 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.3536, allocations: 8.375 kB / 400.4 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001935/0.3538, allocations: 196.5 kB / 400.6 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001745/0.3555, allocations: 1.363 MB / 402 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.078e-05/0.3556, allocations: 23.44 kB / 402 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.453e-05/0.3557, allocations: 29.16 kB / 402 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009463/0.3566, allocations: 453 kB / 402.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.3567, allocations: 3.984 kB / 402.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.457e-05/0.3567, allocations: 10.56 kB / 402.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.3567, allocations: 23.97 kB / 402.5 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001096/0.3578, allocations: 0.5061 MB / 403 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002683/0.3605, allocations: 1.629 MB / 404.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009325/0.3615, allocations: 413.3 kB / 405.1 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007939/0.3623, allocations: 430.9 kB / 405.5 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01565/0.3779, allocations: 15.54 MB / 421 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006683/0.3787, allocations: 284.2 kB / 421.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.214e-06/0.3787, allocations: 0 / 421.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002217/0.3809, allocations: 0.8993 MB / 422.2 MB, free: 11.1 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.3809, allocations: 55.41 kB / 422.3 MB, free: 11.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001835/0.3828, allocations: 1.459 MB / 423.7 MB, free: 9.535 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.843e-05/0.3828, allocations: 33.7 kB / 423.7 MB, free: 9.496 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005903/0.3834, allocations: 0.7187 MB / 424.5 MB, free: 8.773 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.957e-05/0.3835, allocations: 90.75 kB / 424.6 MB, free: 8.684 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.754e-05/0.3836, allocations: 45.69 kB / 424.6 MB, free: 8.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3837, allocations: 333.9 kB / 424.9 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004615/0.3842, allocations: 181 kB / 425.1 MB, free: 8.125 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006214/0.3848, allocations: 391.4 kB / 425.5 MB, free: 7.648 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.3859, allocations: 0.569 MB / 426.1 MB, free: 6.988 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.3859, allocations: 0 / 426.1 MB, free: 6.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001535/0.3874, allocations: 0.7907 MB / 426.8 MB, free: 6.188 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.3875, allocations: 12 kB / 426.9 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.265e-05/0.3875, allocations: 47.98 kB / 426.9 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002891/0.3878, allocations: 128.8 kB / 427 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004179/0.3883, allocations: 124.5 kB / 427.1 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006033/0.3889, allocations: 0.6849 MB / 427.8 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007689/0.3897, allocations: 79.62 kB / 427.9 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.219e-05/0.3897, allocations: 32 kB / 427.9 MB, free: 5.059 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.0004937/0.3902, allocations: 286.7 kB / 428.2 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002017/0.3904, allocations: 185.8 kB / 428.4 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001977/0.3924, allocations: 0.7784 MB / 429.2 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.3925, allocations: 8 kB / 429.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.3925, allocations: 5.688 kB / 429.2 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.3925, allocations: 0 / 429.2 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002253/0.3947, allocations: 1.35 MB / 430.5 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.865e-05/0.3948, allocations: 35.98 kB / 430.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002579/0.3951, allocations: 60.02 kB / 430.6 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002274/0.3953, allocations: 120.8 kB / 430.8 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.743e-05/0.3953, allocations: 23.98 kB / 430.8 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005126/0.3959, allocations: 0.6733 MB / 431.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.3959, allocations: 4.031 kB / 431.5 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001303/0.3972, allocations: 0.7475 MB / 432.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004511/0.3976, allocations: 282.7 kB / 432.5 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000148/0.3978, allocations: 15.98 kB / 432.5 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004383/0.3982, allocations: 32.84 kB / 432.5 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.3984, allocations: 39.95 kB / 432.6 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.385e-05/0.3984, allocations: 20 kB / 432.6 MB, free: 248 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001199/0.3996, allocations: 0.9649 MB / 433.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3996, allocations: 0 / 433.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009742/0.4006, allocations: 331.8 kB / 433.9 MB, free: 14.93 MB / 350.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.0008598/0.4015, allocations: 0.5813 MB / 434.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.4028, allocations: 0.5652 MB / 435 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.4028, allocations: 0 / 435 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006621/0.4035, allocations: 311.5 kB / 435.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001522/0.405, allocations: 289.7 kB / 435.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003778/0.4088, allocations: 2.732 MB / 438.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006689/0.4095, allocations: 1.149 MB / 439.5 MB, free: 9.211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001969/0.4097, allocations: 87.44 kB / 439.6 MB, free: 9.125 MB / 350.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4097, allocations: 0 / 439.6 MB, free: 9.125 MB / 350.1 MB Notification: Performance of Templates: time 0.03831/0.4481, allocations: 25.61 MB / 465.2 MB, free: 15.57 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile (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) diffSimulationResults("Modelica_trunk_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_trunk_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