Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001103/0.001103, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00123/0.00123, allocations: 191.5 kB / 16.13 MB, free: 6.668 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.375/1.375, allocations: 205.1 MB / 222 MB, free: 4.715 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.001106/0.001106, allocations: 52.2 kB / 278 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2335, allocations: 46.63 MB / 324.7 MB, free: 2.273 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01328/0.2468, allocations: 14.47 MB / 339.1 MB, free: 5.898 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0234/0.2702, allocations: 19.95 MB / 359.1 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003539/0.2738, allocations: 31.81 kB / 359.1 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003746/0.2777, allocations: 1.076 MB / 360.2 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008637/0.2863, allocations: 1.942 MB / 362.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004482/0.2909, allocations: 1.152 MB / 363.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01096/0.3018, allocations: 6.339 MB / 369.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007969/0.3027, allocations: 450.1 kB / 370.1 MB, free: 6.816 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001352/0.3041, allocations: 0.9754 MB / 371 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009231/0.305, allocations: 1.102 MB / 372.1 MB, free: 4.727 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002058/0.3052, allocations: 52 kB / 372.2 MB, free: 4.676 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003876/0.3091, allocations: 1.12 MB / 373.3 MB, free: 3.555 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003458/0.3095, allocations: 317.5 kB / 373.6 MB, free: 3.242 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001484/0.3109, allocations: 1.424 MB / 375.1 MB, free: 1.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004523/0.3155, allocations: 3.903 MB / 379 MB, free: 13.89 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3155, allocations: 0 / 379 MB, free: 13.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3155, allocations: 0 / 379 MB, free: 13.89 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.559e-05/0.3156, allocations: 0 / 379 MB, free: 13.89 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.005187/0.3208, allocations: 3.857 MB / 382.8 MB, free: 9.953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.3208, allocations: 8.031 kB / 382.8 MB, free: 9.945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004028/0.3212, allocations: 414.9 kB / 383.2 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003264/0.3245, allocations: 2.507 MB / 385.7 MB, free: 6.957 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.547e-05/0.3245, allocations: 40.94 kB / 385.8 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/0.3247, allocations: 48 kB / 385.8 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.326, allocations: 0.7303 MB / 386.5 MB, free: 6.137 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.3261, allocations: 4 kB / 386.6 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.309e-05/0.3261, allocations: 24 kB / 386.6 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.214e-05/0.3262, allocations: 19.98 kB / 386.6 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001578/0.3278, allocations: 0.8124 MB / 387.4 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005131/0.3329, allocations: 3.119 MB / 390.5 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.3341, allocations: 0.5752 MB / 391.1 MB, free: 1.492 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009752/0.3351, allocations: 0.6477 MB / 391.7 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02779/0.3629, allocations: 30.2 MB / 421.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007619/0.3637, allocations: 361.7 kB / 422.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.404e-06/0.3637, allocations: 0 / 422.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002226/0.366, allocations: 1.12 MB / 423.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.366, allocations: 59.39 kB / 423.5 MB, free: 12.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003486/0.3695, allocations: 3.1 MB / 426.6 MB, free: 9.867 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.935e-05/0.3696, allocations: 41.7 kB / 426.6 MB, free: 9.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001185/0.3708, allocations: 1.577 MB / 428.2 MB, free: 8.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00015/0.3709, allocations: 169.6 kB / 428.4 MB, free: 8.062 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003143/0.3713, allocations: 230.2 kB / 428.6 MB, free: 7.832 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.3714, allocations: 333.9 kB / 428.9 MB, free: 7.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000565/0.372, allocations: 249.8 kB / 429.2 MB, free: 7.258 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007628/0.3727, allocations: 0.6098 MB / 429.8 MB, free: 6.477 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.3741, allocations: 0.8974 MB / 430.7 MB, free: 5.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.3741, allocations: 4 kB / 430.7 MB, free: 5.406 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002053/0.3762, allocations: 1.252 MB / 431.9 MB, free: 4.141 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.3762, allocations: 15.94 kB / 431.9 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.892e-05/0.3763, allocations: 80.84 kB / 432 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.651e-05/0.3763, allocations: 16 kB / 432 MB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006935/0.377, allocations: 207.6 kB / 432.2 MB, free: 3.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.472e-05/0.3771, allocations: 27.92 kB / 432.3 MB, free: 3.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009149/0.378, allocations: 103.1 kB / 432.4 MB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-05/0.3781, allocations: 67.98 kB / 432.4 MB, free: 3.633 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.0007555/0.3789, allocations: 465.4 kB / 432.9 MB, free: 3.168 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003327/0.3792, allocations: 399.1 kB / 433.3 MB, free: 2.773 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002805/0.382, allocations: 1.219 MB / 434.5 MB, free: 1.543 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.382, allocations: 4 kB / 434.5 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3821, allocations: 0 / 434.5 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3821, allocations: 0 / 434.5 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003215/0.3853, allocations: 2.159 MB / 436.7 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-05/0.3854, allocations: 68 kB / 436.7 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004905/0.3859, allocations: 91.86 kB / 436.8 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.017e-06/0.3859, allocations: 12.05 kB / 436.8 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.513e-05/0.386, allocations: 28 kB / 436.8 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.386, allocations: 0 / 436.8 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.386, allocations: 4 kB / 436.9 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002323/0.3883, allocations: 1.326 MB / 438.2 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007777/0.3891, allocations: 492 kB / 438.7 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000307/0.3894, allocations: 23.98 kB / 438.7 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006798/0.3901, allocations: 27.97 kB / 438.7 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001684/0.3903, allocations: 63.94 kB / 438.8 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.611e-05/0.3904, allocations: 39.94 kB / 438.8 MB, free: 13.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002945/0.3933, allocations: 2.019 MB / 440.8 MB, free: 11.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3933, allocations: 0 / 440.8 MB, free: 11.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001522/0.3949, allocations: 0.6011 MB / 441.4 MB, free: 10.49 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.001145/0.396, allocations: 0.7884 MB / 442.2 MB, free: 9.691 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001652/0.3977, allocations: 0.8064 MB / 443 MB, free: 8.859 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3977, allocations: 0 / 443 MB, free: 8.859 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007647/0.3985, allocations: 455.4 kB / 443.5 MB, free: 8.391 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001994/0.4005, allocations: 0.4994 MB / 444 MB, free: 7.887 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007425/0.4079, allocations: 5.424 MB / 449.4 MB, free: 2.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.4092, allocations: 1.718 MB / 451.1 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001306/0.4105, allocations: 365.4 kB / 451.5 MB, free: 320 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002277/0.4108, allocations: 147.4 kB / 451.6 MB, free: 172 kB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4108, allocations: 7.938 kB / 451.6 MB, free: 164 kB / 382.1 MB Notification: Performance of Templates: time 0.2003/0.6111, allocations: 30.97 MB / 482.6 MB, free: 92.91 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)