Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.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.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001235, allocations: 108.3 kB / 16.51 MB, free: 6.707 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.001223/0.001223, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.367/1.367, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.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.001095/0.001095, allocations: 43.94 kB / 279.3 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08898/0.09009, allocations: 46.63 MB / 326 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02034/0.1105, allocations: 25.04 MB / 351 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02385/0.1343, allocations: 21.49 MB / 372.5 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003746/0.1381, allocations: 55.69 kB / 372.5 MB, free: 6.117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003956/0.1421, allocations: 1.473 MB / 374 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01095/0.1531, allocations: 2.674 MB / 376.7 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00524/0.1584, allocations: 1.312 MB / 378 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1805/0.3389, allocations: 12.13 MB / 390.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001432/0.3404, allocations: 0.8197 MB / 390.9 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003294/0.3437, allocations: 1.797 MB / 392.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002287/0.346, allocations: 2.02 MB / 394.8 MB, free: 12 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004197/0.3464, allocations: 89.69 kB / 394.9 MB, free: 12 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003404/0.3498, allocations: 1.171 MB / 396 MB, free: 12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004848/0.3503, allocations: 0.564 MB / 396.6 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002476/0.3528, allocations: 2.601 MB / 399.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006071/0.3589, allocations: 6.501 MB / 405.7 MB, free: 9.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.3589, allocations: 0 / 405.7 MB, free: 9.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.3589, allocations: 0 / 405.7 MB, free: 9.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001334/0.3591, allocations: 0 / 405.7 MB, free: 9.16 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.008122/0.3672, allocations: 6.732 MB / 412.4 MB, free: 3.609 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.3673, allocations: 12.03 kB / 412.4 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005906/0.3679, allocations: 0.7481 MB / 413.2 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006082/0.3739, allocations: 4.676 MB / 417.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.895e-05/0.374, allocations: 66 kB / 417.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002337/0.3743, allocations: 103.9 kB / 418 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002403/0.3767, allocations: 1.301 MB / 419.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/0.3767, allocations: 0.75 kB / 419.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.3768, allocations: 39.98 kB / 419.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.19e-05/0.3769, allocations: 37.67 kB / 419.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00249/0.3794, allocations: 1.488 MB / 420.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009237/0.3886, allocations: 5.646 MB / 426.5 MB, free: 5.656 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.3903, allocations: 0.9893 MB / 427.5 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001649/0.392, allocations: 1.22 MB / 428.7 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05512/0.4471, allocations: 59.94 MB / 488.7 MB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001012/0.4482, allocations: 0.5598 MB / 489.2 MB, free: 14.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 2.585e-06/0.4482, allocations: 0 / 489.2 MB, free: 14.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.0033/0.4515, allocations: 1.884 MB / 491.1 MB, free: 12.94 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.791e-05/0.4516, allocations: 59.97 kB / 491.2 MB, free: 12.86 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00661/0.4582, allocations: 5.628 MB / 496.8 MB, free: 7.266 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.317e-05/0.4583, allocations: 41.7 kB / 496.9 MB, free: 7.219 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00268/0.461, allocations: 2.928 MB / 499.8 MB, free: 4.285 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003238/0.4613, allocations: 304.4 kB / 0.4884 GB, free: 3.992 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000578/0.4619, allocations: 422.5 kB / 0.4888 GB, free: 3.574 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.462, allocations: 309.1 kB / 0.4891 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001121/0.4632, allocations: 399.8 kB / 0.4894 GB, free: 2.879 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001739/0.4649, allocations: 1.096 MB / 0.4905 GB, free: 1.461 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002287/0.4672, allocations: 1.61 MB / 0.4921 GB, free: 15.53 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.4672, allocations: 8 kB / 0.4921 GB, free: 15.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003858/0.4711, allocations: 2.222 MB / 0.4943 GB, free: 13.3 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.4711, allocations: 16 kB / 0.4943 GB, free: 13.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002028/0.4714, allocations: 164 kB / 0.4944 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.827e-05/0.4714, allocations: 32 kB / 0.4945 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/0.4727, allocations: 363.9 kB / 0.4948 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-05/0.4727, allocations: 43.86 kB / 0.4948 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002049/0.4748, allocations: 190.1 kB / 0.495 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001878/0.475, allocations: 120 kB / 0.4951 GB, free: 12.39 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001621/0.4766, allocations: 0.7197 MB / 0.4958 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007311/0.4774, allocations: 0.7217 MB / 0.4966 GB, free: 10.93 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004974/0.4823, allocations: 2.165 MB / 0.4987 GB, free: 8.77 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.4824, allocations: 8 kB / 0.4987 GB, free: 8.762 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.4824, allocations: 0 / 0.4987 GB, free: 8.762 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.4824, allocations: 3.984 kB / 0.4987 GB, free: 8.758 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006207/0.4886, allocations: 3.627 MB / 0.5022 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002143/0.4888, allocations: 144 kB / 0.5024 GB, free: 4.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007619/0.4896, allocations: 151.8 kB / 0.5025 GB, free: 4.793 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.028e-05/0.4896, allocations: 7.984 kB / 0.5025 GB, free: 4.785 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.84e-05/0.4897, allocations: 63.98 kB / 0.5026 GB, free: 4.723 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.898e-06/0.4898, allocations: 4.875 kB / 0.5026 GB, free: 4.719 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4898, allocations: 0 / 0.5026 GB, free: 4.719 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003461/0.4932, allocations: 2.164 MB / 0.5047 GB, free: 2.523 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001365/0.4946, allocations: 0.8163 MB / 0.5055 GB, free: 1.68 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005625/0.4952, allocations: 19.98 kB / 0.5055 GB, free: 1.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.4963, allocations: 31.91 kB / 0.5055 GB, free: 1.629 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002526/0.4966, allocations: 104.5 kB / 0.5056 GB, free: 1.527 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001337/0.4967, allocations: 75.92 kB / 0.5057 GB, free: 1.457 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005065/0.5018, allocations: 3.633 MB / 0.5093 GB, free: 13.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/0.5018, allocations: 0 / 0.5093 GB, free: 13.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002561/0.5044, allocations: 1.085 MB / 0.5103 GB, free: 12.77 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001728/0.5061, allocations: 1.188 MB / 0.5115 GB, free: 11.79 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002551/0.5087, allocations: 1.436 MB / 0.5129 GB, free: 10.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.5087, allocations: 0 / 0.5129 GB, free: 10.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001129/0.5098, allocations: 0.7782 MB / 0.5136 GB, free: 9.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003851/0.5137, allocations: 0.918 MB / 0.5145 GB, free: 8.559 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01299/0.5267, allocations: 9.796 MB / 0.5241 GB, free: 14.73 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001917/0.5287, allocations: 2.6 MB / 0.5266 GB, free: 12.11 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002452/0.5311, allocations: 0.6927 MB / 0.5273 GB, free: 11.41 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003755/0.5315, allocations: 279.4 kB / 0.5276 GB, free: 11.14 MB / 462.1 MB Notification: Performance of SimCode: time 5.41e-07/0.5315, allocations: 4 kB / 0.5276 GB, free: 11.14 MB / 462.1 MB Notification: Performance of Templates: time 0.2119/0.7435, allocations: 53.66 MB / 0.58 GB, free: 156 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)