Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008567/0.0008568, allocations: 93.22 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001031/0.001031, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002519/0.0002519, allocations: 8 kB / 307.7 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09086/0.09113, allocations: 51.51 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1793/0.2705, allocations: 14.02 MB / 373.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02029/0.2908, allocations: 20.62 MB / 393.9 MB, free: 1.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001609/0.2925, allocations: 29.59 kB / 393.9 MB, free: 1.254 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003098/0.2956, allocations: 1.102 MB / 395 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007472/0.3031, allocations: 1.924 MB / 396.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004843/0.3079, allocations: 1.203 MB / 398.2 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01008/0.318, allocations: 6.436 MB / 404.6 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008155/0.3189, allocations: 432.1 kB / 405 MB, free: 11.97 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001685/0.3206, allocations: 1.04 MB / 406 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001207/0.3218, allocations: 1.07 MB / 407.1 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001419/0.322, allocations: 43.5 kB / 407.2 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004365/0.3263, allocations: 1.459 MB / 408.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003306/0.3267, allocations: 298.7 kB / 408.9 MB, free: 10 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001579/0.3283, allocations: 1.363 MB / 410.3 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005027/0.3333, allocations: 3.614 MB / 413.9 MB, free: 5.004 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.3333, allocations: 4 kB / 413.9 MB, free: 5 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3333, allocations: 3.938 kB / 413.9 MB, free: 4.996 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.845e-05/0.3334, allocations: 4 kB / 413.9 MB, free: 4.992 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004751/0.3382, allocations: 3.216 MB / 417.1 MB, free: 1.703 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.3382, allocations: 8.031 kB / 417.1 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003965/0.3386, allocations: 399.1 kB / 417.5 MB, free: 1.301 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003235/0.3418, allocations: 2.429 MB / 419.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.427e-05/0.3419, allocations: 40.98 kB / 420 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.342, allocations: 55.91 kB / 420 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.3434, allocations: 0.75 MB / 420.8 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.3434, allocations: 0 / 420.8 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.241e-05/0.3435, allocations: 20 kB / 420.8 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.096e-05/0.3435, allocations: 19.98 kB / 420.8 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001623/0.3452, allocations: 0.8593 MB / 421.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004886/0.3501, allocations: 3.075 MB / 424.8 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.3514, allocations: 0.6259 MB / 425.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/0.3524, allocations: 0.6684 MB / 426.1 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02834/0.3808, allocations: 30.78 MB / 456.8 MB, free: 5.547 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000796/0.3816, allocations: 389.6 kB / 457.2 MB, free: 5.148 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.254e-06/0.3816, allocations: 0 / 457.2 MB, free: 5.148 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002266/0.3839, allocations: 1.151 MB / 458.4 MB, free: 3.992 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.3839, allocations: 63.39 kB / 458.4 MB, free: 3.918 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003314/0.3873, allocations: 2.927 MB / 461.4 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.46e-05/0.3873, allocations: 41.7 kB / 461.4 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001226/0.3886, allocations: 1.485 MB / 462.9 MB, free: 15.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.3887, allocations: 165.7 kB / 463 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.3888, allocations: 73.67 kB / 463.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.3889, allocations: 337.9 kB / 463.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006205/0.3896, allocations: 261.9 kB / 463.7 MB, free: 14.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000836/0.3904, allocations: 0.6371 MB / 464.3 MB, free: 13.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00152/0.392, allocations: 0.9325 MB / 465.3 MB, free: 12.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.276e-06/0.392, allocations: 7.938 kB / 465.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002098/0.3941, allocations: 1.268 MB / 466.5 MB, free: 11.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.3941, allocations: 8 kB / 466.6 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001025/0.3942, allocations: 83.98 kB / 466.6 MB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-05/0.3942, allocations: 20 kB / 466.7 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007448/0.395, allocations: 216.2 kB / 466.9 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.39e-05/0.395, allocations: 19.94 kB / 466.9 MB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009414/0.396, allocations: 127 kB / 467 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.3961, allocations: 67.94 kB / 467.1 MB, free: 10.88 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007031/0.3968, allocations: 440.8 kB / 467.5 MB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003425/0.3972, allocations: 383.3 kB / 467.9 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002927/0.4001, allocations: 1.24 MB / 469.1 MB, free: 8.809 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.4001, allocations: 4 kB / 469.1 MB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.4001, allocations: 4 kB / 469.1 MB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.4001, allocations: 3.984 kB / 469.1 MB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003131/0.4033, allocations: 2.132 MB / 471.3 MB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.383e-05/0.4034, allocations: 68 kB / 471.3 MB, free: 6.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000485/0.4039, allocations: 103.9 kB / 471.4 MB, free: 6.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.4039, allocations: 4 kB / 471.4 MB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.743e-05/0.4039, allocations: 32.02 kB / 471.5 MB, free: 6.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.4039, allocations: 4 kB / 471.5 MB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.404, allocations: 4 kB / 471.5 MB, free: 6.383 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002255/0.4062, allocations: 1.363 MB / 472.8 MB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006025/0.4068, allocations: 472.3 kB / 473.3 MB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002551/0.4071, allocations: 12 kB / 473.3 MB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006831/0.4078, allocations: 44.02 kB / 473.4 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/0.4079, allocations: 63.89 kB / 473.4 MB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.256e-05/0.408, allocations: 39.98 kB / 473.5 MB, free: 4.352 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002217/0.4102, allocations: 1.899 MB / 475.4 MB, free: 2.453 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4102, allocations: 0 / 475.4 MB, free: 2.453 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001206/0.4115, allocations: 0.5855 MB / 475.9 MB, free: 1.867 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * 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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00104/0.4125, allocations: 0.7811 MB / 476.7 MB, free: 1.078 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001621/0.4141, allocations: 0.8529 MB / 477.6 MB, free: 204 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4142, allocations: 0 / 477.6 MB, free: 204 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007958/0.415, allocations: 467.3 kB / 478 MB, free: 15.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002808/0.4178, allocations: 0.5724 MB / 478.6 MB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006464/0.4243, allocations: 5.255 MB / 483.9 MB, free: 9.844 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/0.4254, allocations: 1.661 MB / 485.5 MB, free: 8.156 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001253/0.4267, allocations: 357.1 kB / 485.9 MB, free: 7.801 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002291/0.4269, allocations: 147.4 kB / 486 MB, free: 7.656 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4269, allocations: 0 / 486 MB, free: 7.656 MB / 398.1 MB Notification: Performance of Templates: time 0.05106/0.478, allocations: 30.08 MB / 0.504 GB, free: 9.715 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches