Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001994/0.001993, allocations: 191.2 kB / 16.25 MB, free: 6.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.376/1.376, allocations: 205.1 MB / 222.1 MB, free: 4.688 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 55.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2168/0.2179, allocations: 46.63 MB / 324.8 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0156/0.2336, allocations: 14.47 MB / 339.3 MB, free: 5.59 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02167/0.2553, allocations: 19.55 MB / 358.9 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003358/0.2587, allocations: 31.81 kB / 358.9 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0038/0.2626, allocations: 1.076 MB / 360 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008072/0.2707, allocations: 1.996 MB / 362 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004992/0.2757, allocations: 1.207 MB / 363.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01185/0.2876, allocations: 6.518 MB / 369.7 MB, free: 7.082 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001247/0.2889, allocations: 473.6 kB / 370.2 MB, free: 6.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001938/0.2909, allocations: 1.011 MB / 371.2 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001851/0.2927, allocations: 1.114 MB / 372.3 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002858/0.293, allocations: 80 kB / 372.4 MB, free: 4.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004723/0.2978, allocations: 1.159 MB / 373.5 MB, free: 3.211 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004555/0.2983, allocations: 341.5 kB / 373.9 MB, free: 2.875 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0018/0.3001, allocations: 1.448 MB / 375.3 MB, free: 1.418 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005952/0.306, allocations: 3.961 MB / 379.3 MB, free: 13.44 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.3061, allocations: 0 / 379.3 MB, free: 13.44 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3061, allocations: 3.938 kB / 379.3 MB, free: 13.44 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.248e-05/0.3062, allocations: 0 / 379.3 MB, free: 13.44 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.005385/0.3116, allocations: 3.853 MB / 383.1 MB, free: 9.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.3116, allocations: 12.03 kB / 383.1 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004427/0.3121, allocations: 410.9 kB / 383.5 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003498/0.3156, allocations: 2.51 MB / 386 MB, free: 6.504 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.869e-05/0.3156, allocations: 40.94 kB / 386.1 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.3158, allocations: 48 kB / 386.1 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.3171, allocations: 0.7304 MB / 386.9 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.3171, allocations: 4 kB / 386.9 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.009e-05/0.3172, allocations: 20 kB / 386.9 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.081e-05/0.3172, allocations: 19.98 kB / 386.9 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/0.3187, allocations: 0.8163 MB / 387.7 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004914/0.3236, allocations: 3.116 MB / 390.8 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.3248, allocations: 0.5751 MB / 391.4 MB, free: 1.043 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009129/0.3257, allocations: 0.6438 MB / 392.1 MB, free: 396 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02785/0.3535, allocations: 30.2 MB / 422.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007923/0.3544, allocations: 361.7 kB / 422.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 4.138e-06/0.3544, allocations: 3.938 kB / 422.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002751/0.3572, allocations: 1.112 MB / 423.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.032e-05/0.3572, allocations: 59.39 kB / 423.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004112/0.3614, allocations: 3.111 MB / 426.9 MB, free: 9.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.612e-05/0.3615, allocations: 33.7 kB / 426.9 MB, free: 9.371 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001311/0.3628, allocations: 1.573 MB / 428.5 MB, free: 7.785 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00022/0.363, allocations: 173.6 kB / 428.7 MB, free: 7.613 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003241/0.3634, allocations: 234.1 kB / 428.9 MB, free: 7.379 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.3635, allocations: 334 kB / 429.2 MB, free: 7.047 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005889/0.3641, allocations: 249.8 kB / 429.5 MB, free: 6.805 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000814/0.3649, allocations: 0.602 MB / 430.1 MB, free: 6.027 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.3663, allocations: 0.9051 MB / 431 MB, free: 4.953 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.732e-06/0.3664, allocations: 0 / 431 MB, free: 4.953 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002168/0.3685, allocations: 1.252 MB / 432.2 MB, free: 3.688 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.3686, allocations: 8.969 kB / 432.2 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/0.3687, allocations: 87.94 kB / 432.3 MB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.853e-05/0.3687, allocations: 20 kB / 432.3 MB, free: 3.574 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006694/0.3694, allocations: 199.7 kB / 432.5 MB, free: 3.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.653e-05/0.3695, allocations: 31.84 kB / 432.6 MB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.3705, allocations: 103.1 kB / 432.7 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.3706, allocations: 64 kB / 432.7 MB, free: 3.184 MB / 366.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.000809/0.3715, allocations: 457.5 kB / 433.2 MB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003872/0.3718, allocations: 403.1 kB / 433.6 MB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002726/0.3746, allocations: 1.223 MB / 434.8 MB, free: 1.098 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.3746, allocations: 4 kB / 434.8 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3746, allocations: 0 / 434.8 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.3746, allocations: 0 / 434.8 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003019/0.3776, allocations: 2.155 MB / 437 MB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-05/0.3777, allocations: 68 kB / 437 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004817/0.3782, allocations: 99.86 kB / 437.1 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.3783, allocations: 7.984 kB / 437.1 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.342e-05/0.3783, allocations: 28 kB / 437.2 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.3783, allocations: 4 kB / 437.2 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3783, allocations: 0 / 437.2 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002081/0.3804, allocations: 1.33 MB / 438.5 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006267/0.3811, allocations: 496 kB / 439 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002952/0.3814, allocations: 15.98 kB / 439 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006734/0.382, allocations: 23.97 kB / 439 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/0.3822, allocations: 63.94 kB / 439.1 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.886e-05/0.3823, allocations: 36 kB / 439.1 MB, free: 12.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002374/0.3847, allocations: 2.027 MB / 441.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3847, allocations: 0 / 441.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001296/0.386, allocations: 0.5972 MB / 441.7 MB, free: 10.05 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.001054/0.387, allocations: 0.7923 MB / 442.5 MB, free: 9.246 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001621/0.3887, allocations: 0.8299 MB / 443.4 MB, free: 8.391 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3887, allocations: 192 / 443.4 MB, free: 8.391 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007046/0.3894, allocations: 447.3 kB / 443.8 MB, free: 7.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001761/0.3912, allocations: 0.5423 MB / 444.3 MB, free: 7.383 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006327/0.3975, allocations: 5.422 MB / 449.8 MB, free: 1.922 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/0.3986, allocations: 1.718 MB / 451.5 MB, free: 180 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.14/0.5386, allocations: 357.5 kB / 451.8 MB, free: 116.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005411/0.5392, allocations: 150.8 kB / 452 MB, free: 116.3 MB / 382.1 MB Notification: Performance of SimCode: time 1.813e-06/0.5392, allocations: 0.625 kB / 452 MB, free: 116.3 MB / 382.1 MB Notification: Performance of Templates: time 0.04766/0.5868, allocations: 31.87 MB / 483.8 MB, free: 91.8 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)