Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CoupledInductors.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.CoupledInductors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CoupledInductors") translateModel(Modelica.Electrical.Spice3.Examples.CoupledInductors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CoupledInductors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 89.88 kB / 16.31 MB, free: 6.461 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.001416/0.001416, allocations: 181.8 kB / 17.21 MB, free: 6.328 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.507/1.507, allocations: 205.4 MB / 223.4 MB, free: 5.801 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.0004808/0.0004809, allocations: 11.98 kB / 280.1 MB, free: 13.06 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2971, allocations: 47.59 MB / 327.7 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.003203/0.3003, allocations: 2.316 MB / 330 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001986/0.3024, allocations: 0.7153 MB / 330.8 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005614/0.303, allocations: 5.719 kB / 330.8 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002514/0.3032, allocations: 47.33 kB / 330.8 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005018/0.3037, allocations: 80.22 kB / 330.9 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000569/0.3043, allocations: 90.14 kB / 331 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005535/0.3049, allocations: 397.1 kB / 331.4 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004024/0.3053, allocations: 167.1 kB / 331.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002338/0.3055, allocations: 140.2 kB / 331.7 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002487/0.3058, allocations: 155.9 kB / 331.8 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.214e-05/0.3059, allocations: 23.88 kB / 331.8 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.663e-05/0.306, allocations: 31.53 kB / 331.9 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.207e-05/0.306, allocations: 72.36 kB / 331.9 MB, free: 14.19 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.3062, allocations: 101.4 kB / 332 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000449/0.3066, allocations: 377.3 kB / 332.4 MB, free: 13.83 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3066, allocations: 1.094 kB / 332.4 MB, free: 13.83 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3067, allocations: 0 / 332.4 MB, free: 13.83 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.707e-06/0.3067, allocations: 0 / 332.4 MB, free: 13.83 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001077/0.3077, allocations: 0.6158 MB / 333 MB, free: 13.3 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.3078, allocations: 9.375 kB / 333 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.272e-05/0.3079, allocations: 46.12 kB / 333.1 MB, free: 13.28 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003407/0.3083, allocations: 276.6 kB / 333.4 MB, free: 12.99 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/0.3083, allocations: 33.62 kB / 333.4 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.993e-05/0.3084, allocations: 43.22 kB / 333.4 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007666/0.3092, allocations: 448.1 kB / 333.9 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.3092, allocations: 0 / 333.9 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.715e-05/0.3093, allocations: 25.09 kB / 333.9 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/0.3093, allocations: 9.594 kB / 333.9 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000569/0.3099, allocations: 287 kB / 334.2 MB, free: 12.51 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00223/0.3121, allocations: 1.309 MB / 335.5 MB, free: 11.43 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006068/0.3127, allocations: 243.4 kB / 335.7 MB, free: 11.29 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003573/0.3131, allocations: 192.8 kB / 335.9 MB, free: 11.1 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.3131, allocations: 4 kB / 335.9 MB, free: 11.1 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.3132, allocations: 38.56 kB / 336 MB, free: 11.05 MB / 270.1 MB Notification: Performance of pre-optimization done (n=29): time 1.663e-06/0.3132, allocations: 0 / 336 MB, free: 11.05 MB / 270.1 MB Notification: Performance of matching and sorting (n=29): time 0.00135/0.3145, allocations: 0.5509 MB / 336.5 MB, free: 10.47 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/0.3147, allocations: 243.3 kB / 336.7 MB, free: 10.18 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002139/0.3149, allocations: 202.8 kB / 336.9 MB, free: 9.973 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.3149, allocations: 29.7 kB / 337 MB, free: 9.938 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.3151, allocations: 203.9 kB / 337.2 MB, free: 9.73 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.998e-05/0.3152, allocations: 94.56 kB / 337.3 MB, free: 9.637 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.359e-05/0.3152, allocations: 12 kB / 337.3 MB, free: 9.625 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.3154, allocations: 334.8 kB / 337.6 MB, free: 9.289 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.3155, allocations: 71.97 kB / 337.7 MB, free: 9.219 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002253/0.3158, allocations: 165.2 kB / 337.8 MB, free: 9.027 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/0.316, allocations: 86.03 kB / 337.9 MB, free: 8.945 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.316, allocations: 0 / 337.9 MB, free: 8.945 MB / 270.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004495/0.3164, allocations: 285.1 kB / 338.2 MB, free: 8.66 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.3165, allocations: 7.953 kB / 338.2 MB, free: 8.652 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3165, allocations: 0 / 338.2 MB, free: 8.652 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/0.3165, allocations: 7.938 kB / 338.2 MB, free: 8.645 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003269/0.3168, allocations: 83.83 kB / 338.3 MB, free: 8.562 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/0.3168, allocations: 3.938 kB / 338.3 MB, free: 8.559 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.317, allocations: 39.69 kB / 338.3 MB, free: 8.52 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.3171, allocations: 11.98 kB / 338.3 MB, free: 8.508 MB / 270.1 MB Warning: Assuming fixed start value for the following 2 variables: C2.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real C1.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002931/0.3174, allocations: 161.7 kB / 338.5 MB, free: 8.34 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.14e-05/0.3174, allocations: 19.81 kB / 338.5 MB, free: 8.32 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.939e-05/0.3175, allocations: 42.59 kB / 338.6 MB, free: 8.277 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.3175, allocations: 0 / 338.6 MB, free: 8.277 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.494e-05/0.3175, allocations: 4 kB / 338.6 MB, free: 8.273 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3175, allocations: 0 / 338.6 MB, free: 8.273 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00113/0.3187, allocations: 0.7759 MB / 339.3 MB, free: 7.438 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.3187, allocations: 0 / 339.3 MB, free: 7.438 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002371/0.3189, allocations: 51.97 kB / 339.4 MB, free: 7.387 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000313/0.3193, allocations: 88.73 kB / 339.5 MB, free: 7.297 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.3193, allocations: 8 kB / 339.5 MB, free: 7.289 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002015/0.3213, allocations: 1.824 MB / 341.3 MB, free: 5.332 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.3213, allocations: 0 / 341.3 MB, free: 5.332 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007759/0.3221, allocations: 0.5054 MB / 341.8 MB, free: 4.805 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.904e-05/0.3222, allocations: 108.9 kB / 341.9 MB, free: 4.68 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.258e-05/0.3223, allocations: 8 kB / 341.9 MB, free: 4.672 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.3224, allocations: 16.09 kB / 341.9 MB, free: 4.656 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.56e-05/0.3225, allocations: 27.91 kB / 342 MB, free: 4.629 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.3225, allocations: 4 kB / 342 MB, free: 4.625 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001335/0.3227, allocations: 148.4 kB / 342.1 MB, free: 4.48 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3227, allocations: 0 / 342.1 MB, free: 4.48 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004477/0.3231, allocations: 115.5 kB / 342.2 MB, free: 4.367 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (L1.iinternal,L2.iinternal,C1.vinternal,L3.iinternal,C2.vinternal) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001407/0.3233, allocations: 103.2 kB / 342.3 MB, free: 4.258 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003993/0.3237, allocations: 212.2 kB / 342.5 MB, free: 4.051 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3237, allocations: 0 / 342.5 MB, free: 4.051 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004209/0.3241, allocations: 286.6 kB / 342.8 MB, free: 3.758 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.3244, allocations: 23.95 kB / 342.8 MB, free: 3.734 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.3259, allocations: 1.054 MB / 343.9 MB, free: 2.656 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.3263, allocations: 0.7831 MB / 344.7 MB, free: 1.844 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.937e-05/0.3264, allocations: 33.86 kB / 344.7 MB, free: 1.809 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.261e-05/0.3265, allocations: 19.44 kB / 344.7 MB, free: 1.789 MB / 270.1 MB Notification: Performance of SimCode: time 1.833e-06/0.3265, allocations: 0 / 344.7 MB, free: 1.789 MB / 270.1 MB Notification: Performance of Templates: time 0.006348/0.3328, allocations: 2.596 MB / 347.3 MB, free: 15.19 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CoupledInductors.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CoupledInductors -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1)