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.001259/0.001259, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246.9 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 67.88 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2431, allocations: 50.55 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01302/0.2562, allocations: 14.71 MB / 423.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0219/0.2781, allocations: 20.71 MB / 444.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001769/0.2799, allocations: 91.25 kB / 444.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002772/0.2827, allocations: 1.234 MB / 446 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005995/0.2887, allocations: 2.293 MB / 448.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005265/0.294, allocations: 1.451 MB / 449.7 MB, free: 8.949 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008749/0.3028, allocations: 6.555 MB / 456.3 MB, free: 2.375 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006803/0.3035, allocations: 461.1 kB / 456.7 MB, free: 1.895 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00148/0.305, allocations: 1.108 MB / 457.8 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00121/0.3062, allocations: 1.114 MB / 458.9 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001927/0.3064, allocations: 72 kB / 459 MB, free: 15.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00366/0.3101, allocations: 1.479 MB / 460.5 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003094/0.3104, allocations: 325.6 kB / 460.8 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00121/0.3116, allocations: 1.366 MB / 462.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00468/0.3163, allocations: 3.775 MB / 466 MB, free: 8.625 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3163, allocations: 0 / 466 MB, free: 8.625 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.387e-06/0.3163, allocations: 0 / 466 MB, free: 8.625 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.732e-05/0.3164, allocations: 3.938 kB / 466 MB, free: 8.621 MB / 382.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.005028/0.3214, allocations: 3.685 MB / 469.6 MB, free: 4.855 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.3215, allocations: 8.031 kB / 469.7 MB, free: 4.848 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003803/0.3219, allocations: 391.2 kB / 470 MB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003122/0.325, allocations: 2.418 MB / 472.5 MB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.325, allocations: 33 kB / 472.5 MB, free: 1.938 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.3252, allocations: 55.98 kB / 472.5 MB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.3265, allocations: 0.7304 MB / 473.3 MB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.3266, allocations: 0 / 473.3 MB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.568e-05/0.3266, allocations: 20 kB / 473.3 MB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.155e-05/0.3267, allocations: 19.98 kB / 473.3 MB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/0.3282, allocations: 0.8202 MB / 474.1 MB, free: 292 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004615/0.3328, allocations: 3.051 MB / 477.2 MB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.3339, allocations: 0.5784 MB / 477.8 MB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009999/0.3349, allocations: 0.6476 MB / 478.4 MB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03144/0.3664, allocations: 30.74 MB / 0.4972 GB, free: 8.922 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007268/0.3672, allocations: 373.6 kB / 0.4976 GB, free: 8.547 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.665e-06/0.3672, allocations: 0 / 0.4976 GB, free: 8.547 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002255/0.3694, allocations: 1.089 MB / 0.4986 GB, free: 7.449 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.172e-05/0.3695, allocations: 63.41 kB / 0.4987 GB, free: 7.375 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003284/0.3728, allocations: 2.935 MB / 0.5016 GB, free: 4.43 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.324e-05/0.3729, allocations: 33.7 kB / 0.5016 GB, free: 4.391 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001248/0.3741, allocations: 1.482 MB / 0.503 GB, free: 2.898 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/0.3743, allocations: 169.7 kB / 0.5032 GB, free: 2.73 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002888/0.3746, allocations: 230.1 kB / 0.5034 GB, free: 2.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.3747, allocations: 337.9 kB / 0.5037 GB, free: 2.164 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005682/0.3753, allocations: 241.9 kB / 0.504 GB, free: 1.93 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008568/0.3762, allocations: 0.6059 MB / 0.5046 GB, free: 1.145 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/0.3775, allocations: 0.8973 MB / 0.5054 GB, free: 72 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.3775, allocations: 7.938 kB / 0.5054 GB, free: 64 kB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001992/0.3795, allocations: 1.221 MB / 0.5066 GB, free: 14.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.3795, allocations: 16.94 kB / 0.5067 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001093/0.3797, allocations: 87.92 kB / 0.5067 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.558e-05/0.3797, allocations: 20 kB / 0.5068 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007159/0.3804, allocations: 199.7 kB / 0.5069 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.341e-05/0.3804, allocations: 27.88 kB / 0.507 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008459/0.3813, allocations: 110.9 kB / 0.5071 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.681e-05/0.3814, allocations: 68 kB / 0.5071 GB, free: 14.32 MB / 446.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.000635/0.382, allocations: 437.4 kB / 0.5076 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003327/0.3824, allocations: 379.4 kB / 0.5079 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002489/0.3849, allocations: 1.182 MB / 0.5091 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.3849, allocations: 12 kB / 0.5091 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.3849, allocations: 0 / 0.5091 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.3849, allocations: 3.984 kB / 0.5091 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003052/0.388, allocations: 2.096 MB / 0.5111 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001092/0.3881, allocations: 68 kB / 0.5112 GB, free: 10.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004681/0.3886, allocations: 91.86 kB / 0.5113 GB, free: 9.969 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.3886, allocations: 0 / 0.5113 GB, free: 9.969 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.556e-05/0.3887, allocations: 39.92 kB / 0.5113 GB, free: 9.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.3887, allocations: 8.062 kB / 0.5113 GB, free: 9.922 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3887, allocations: 3.938 kB / 0.5113 GB, free: 9.918 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/0.3908, allocations: 1.304 MB / 0.5126 GB, free: 8.582 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000605/0.3914, allocations: 472.3 kB / 0.5131 GB, free: 8.098 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002477/0.3917, allocations: 12 kB / 0.5131 GB, free: 8.086 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006786/0.3924, allocations: 32.02 kB / 0.5131 GB, free: 8.055 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.3925, allocations: 63.89 kB / 0.5132 GB, free: 7.992 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.255e-05/0.3926, allocations: 39.98 kB / 0.5132 GB, free: 7.953 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002176/0.3948, allocations: 1.899 MB / 0.5151 GB, free: 6.055 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3948, allocations: 0 / 0.5151 GB, free: 6.055 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001239/0.396, allocations: 0.5894 MB / 0.5156 GB, free: 5.465 MB / 446.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.001075/0.3971, allocations: 0.7739 MB / 0.5164 GB, free: 4.684 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001551/0.3987, allocations: 0.8091 MB / 0.5172 GB, free: 3.848 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3987, allocations: 0 / 0.5172 GB, free: 3.848 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008102/0.3995, allocations: 440.2 kB / 0.5176 GB, free: 3.395 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002219/0.4017, allocations: 0.619 MB / 0.5182 GB, free: 2.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00576/0.4075, allocations: 4.293 MB / 0.5224 GB, free: 14.44 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/0.4086, allocations: 1.661 MB / 0.524 GB, free: 12.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008431/0.4094, allocations: 365.1 kB / 0.5244 GB, free: 12.39 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000206/0.4096, allocations: 147.4 kB / 0.5245 GB, free: 12.25 MB / 462.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4096, allocations: 0 / 0.5245 GB, free: 12.25 MB / 462.1 MB Notification: Performance of Templates: time 0.2442/0.6538, allocations: 31.33 MB / 0.5551 GB, free: 119.6 MB / 462.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)