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.001085/0.001085, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001217/0.001217, allocations: 195.4 kB / 16.14 MB, free: 6.707 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.459/1.459, allocations: 205.1 MB / 222 MB, free: 4.762 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.00197/0.001971, allocations: 51.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2355, allocations: 46.63 MB / 324.7 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01388/0.2495, allocations: 14.47 MB / 339.1 MB, free: 5.637 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0289/0.2784, allocations: 19.95 MB / 359.1 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00339/0.2819, allocations: 31.81 kB / 359.1 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003369/0.2853, allocations: 1.084 MB / 360.2 MB, free: 500 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007569/0.2929, allocations: 1.93 MB / 362.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004258/0.2972, allocations: 1.152 MB / 363.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009639/0.3068, allocations: 6.339 MB / 369.6 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000727/0.3076, allocations: 450.1 kB / 370.1 MB, free: 6.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001252/0.3088, allocations: 0.9754 MB / 371 MB, free: 5.582 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000928/0.3098, allocations: 1.102 MB / 372.1 MB, free: 4.473 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001824/0.31, allocations: 48 kB / 372.2 MB, free: 4.426 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003747/0.3137, allocations: 1.132 MB / 373.3 MB, free: 3.293 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003826/0.3141, allocations: 317.5 kB / 373.6 MB, free: 2.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001459/0.3156, allocations: 1.42 MB / 375.1 MB, free: 1.551 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005318/0.3209, allocations: 3.895 MB / 379 MB, free: 13.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.321, allocations: 0 / 379 MB, free: 13.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.321, allocations: 0 / 379 MB, free: 13.64 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001026/0.3211, allocations: 3.938 kB / 379 MB, free: 13.63 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.005868/0.327, allocations: 3.857 MB / 382.8 MB, free: 9.695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.327, allocations: 16.02 kB / 382.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004346/0.3275, allocations: 410.9 kB / 383.2 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003317/0.3308, allocations: 2.503 MB / 385.7 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/0.3308, allocations: 40.94 kB / 385.8 MB, free: 6.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.331, allocations: 48 kB / 385.8 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/0.3323, allocations: 0.7343 MB / 386.6 MB, free: 5.875 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.3323, allocations: 0 / 386.6 MB, free: 5.875 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.306e-05/0.3324, allocations: 20 kB / 386.6 MB, free: 5.855 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.412e-05/0.3325, allocations: 19.98 kB / 386.6 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001548/0.334, allocations: 0.8241 MB / 387.4 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005228/0.3393, allocations: 3.123 MB / 390.5 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.3405, allocations: 0.5712 MB / 391.1 MB, free: 1.227 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009971/0.3415, allocations: 0.6477 MB / 391.8 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0277/0.3692, allocations: 30.2 MB / 422 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000754/0.37, allocations: 357.7 kB / 422.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.414e-06/0.37, allocations: 0 / 422.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002129/0.3721, allocations: 1.112 MB / 423.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.3722, allocations: 67.33 kB / 423.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003727/0.3759, allocations: 3.107 MB / 426.6 MB, free: 9.594 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.99e-05/0.376, allocations: 33.7 kB / 426.6 MB, free: 9.555 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001431/0.3774, allocations: 1.573 MB / 428.2 MB, free: 7.969 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000151/0.3776, allocations: 177.6 kB / 428.4 MB, free: 7.793 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003046/0.3779, allocations: 226.2 kB / 428.6 MB, free: 7.566 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3781, allocations: 334 kB / 428.9 MB, free: 7.234 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005618/0.3786, allocations: 249.8 kB / 429.2 MB, free: 6.992 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008174/0.3795, allocations: 0.6059 MB / 429.8 MB, free: 6.215 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001394/0.3809, allocations: 0.8974 MB / 430.7 MB, free: 5.148 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.3809, allocations: 0 / 430.7 MB, free: 5.148 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002045/0.3829, allocations: 1.257 MB / 431.9 MB, free: 3.879 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/0.383, allocations: 12.06 kB / 431.9 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001051/0.3831, allocations: 84 kB / 432 MB, free: 3.785 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.058e-05/0.3831, allocations: 19.98 kB / 432 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007019/0.3838, allocations: 199.6 kB / 432.2 MB, free: 3.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.442e-05/0.3839, allocations: 23.92 kB / 432.3 MB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008959/0.3848, allocations: 107.1 kB / 432.4 MB, free: 3.441 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/0.3849, allocations: 67.98 kB / 432.4 MB, free: 3.375 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.0007426/0.3856, allocations: 457.4 kB / 432.9 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003475/0.386, allocations: 399.1 kB / 433.3 MB, free: 2.523 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002742/0.3887, allocations: 1.223 MB / 434.5 MB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.3888, allocations: 4 kB / 434.5 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.3888, allocations: 0 / 434.5 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.3888, allocations: 7.922 kB / 434.5 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003234/0.392, allocations: 2.155 MB / 436.7 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-05/0.3921, allocations: 68 kB / 436.7 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004783/0.3926, allocations: 95.97 kB / 436.8 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.201e-06/0.3926, allocations: 7.938 kB / 436.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.582e-05/0.3927, allocations: 28 kB / 436.8 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.3927, allocations: 4 kB / 436.9 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3927, allocations: 0 / 436.9 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/0.3949, allocations: 1.33 MB / 438.2 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006383/0.3955, allocations: 496 kB / 438.7 MB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002874/0.3958, allocations: 12 kB / 438.7 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000644/0.3965, allocations: 23.97 kB / 438.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.3966, allocations: 67.88 kB / 438.8 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.69e-05/0.3967, allocations: 39.94 kB / 438.8 MB, free: 12.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002458/0.3992, allocations: 2.027 MB / 440.8 MB, free: 10.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3992, allocations: 0 / 440.8 MB, free: 10.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001318/0.4005, allocations: 0.5972 MB / 441.4 MB, free: 10.23 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.001101/0.4016, allocations: 0.7884 MB / 442.2 MB, free: 9.434 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001485/0.4031, allocations: 0.8065 MB / 443 MB, free: 8.602 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.4031, allocations: 4 kB / 443 MB, free: 8.598 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007195/0.4039, allocations: 443.2 kB / 443.5 MB, free: 8.141 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001895/0.4058, allocations: 0.5073 MB / 444 MB, free: 7.629 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006799/0.4126, allocations: 5.428 MB / 449.4 MB, free: 2.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/0.4137, allocations: 1.718 MB / 451.1 MB, free: 424 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001277/0.4149, allocations: 361.4 kB / 451.5 MB, free: 56 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1519/0.5668, allocations: 149.3 kB / 451.6 MB, free: 115.6 MB / 382.1 MB Notification: Performance of SimCode: time 1.543e-06/0.5669, allocations: 3.156 kB / 451.6 MB, free: 115.6 MB / 382.1 MB Notification: Performance of Templates: time 0.05147/0.6183, allocations: 30.96 MB / 482.6 MB, free: 92.25 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)