Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Spice3.Examples.CoupledInductors") translateModel(Modelica.Electrical.Spice3.Examples.CoupledInductors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.007346/0.007346, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001824/0.001824, allocations: 197.5 kB / 16.67 MB, free: 5.52 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.352/1.352, allocations: 205.1 MB / 222.5 MB, free: 12.25 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.001181/0.001181, allocations: 47.92 kB / 326.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09273/0.09392, allocations: 46.62 MB / 373.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.003819/0.09778, allocations: 2.765 MB / 375.9 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001258/0.09907, allocations: 0.7601 MB / 376.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.09921, allocations: 4 kB / 376.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.09938, allocations: 59.42 kB / 376.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001981/0.09959, allocations: 99.06 kB / 376.8 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004112/0.1, allocations: 127.8 kB / 377 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004/0.1004, allocations: 430.8 kB / 377.4 MB, free: 328 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003236/0.1008, allocations: 228.8 kB / 377.6 MB, free: 92 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1947/0.2955, allocations: 175.3 kB / 377.8 MB, free: 9.938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003355/0.2959, allocations: 198.9 kB / 378 MB, free: 9.938 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.841e-05/0.296, allocations: 46.41 kB / 378 MB, free: 9.938 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.934e-05/0.296, allocations: 45.88 kB / 378.1 MB, free: 9.938 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.2962, allocations: 99.31 kB / 378.2 MB, free: 9.926 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002112/0.2964, allocations: 213.6 kB / 378.4 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006333/0.297, allocations: 0.4965 MB / 378.9 MB, free: 9.809 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.297, allocations: 2.469 kB / 378.9 MB, free: 9.809 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.297, allocations: 0 / 378.9 MB, free: 9.809 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.2971, allocations: 0.5938 kB / 378.9 MB, free: 9.809 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001042/0.2981, allocations: 0.6847 MB / 379.6 MB, free: 9.348 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.2982, allocations: 10.19 kB / 379.6 MB, free: 9.348 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.729e-05/0.2983, allocations: 43.06 kB / 379.6 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/0.2985, allocations: 282.4 kB / 379.9 MB, free: 9.094 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.402e-05/0.2986, allocations: 32.44 kB / 379.9 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.588e-05/0.2986, allocations: 41.98 kB / 380 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007286/0.2994, allocations: 450.2 kB / 380.4 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.2994, allocations: 3.938 kB / 380.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.71e-05/0.2995, allocations: 19.28 kB / 380.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.2995, allocations: 13.06 kB / 380.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006554/0.3001, allocations: 286.9 kB / 380.7 MB, free: 8.973 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001738/0.3019, allocations: 1.284 MB / 382 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004279/0.3023, allocations: 237.5 kB / 382.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003692/0.3027, allocations: 202 kB / 382.4 MB, free: 8.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.3028, allocations: 5.031 kB / 382.4 MB, free: 8.371 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.3028, allocations: 42.78 kB / 382.5 MB, free: 8.328 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.923e-06/0.3028, allocations: 0 / 382.5 MB, free: 8.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001418/0.3042, allocations: 0.5474 MB / 383 MB, free: 8.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.3043, allocations: 237.5 kB / 383.2 MB, free: 7.789 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.3045, allocations: 208.9 kB / 383.5 MB, free: 7.652 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.3045, allocations: 31.83 kB / 383.5 MB, free: 7.617 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.999e-05/0.3046, allocations: 200.1 kB / 383.7 MB, free: 7.453 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.302e-05/0.3047, allocations: 105.6 kB / 383.8 MB, free: 7.371 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.138e-05/0.3047, allocations: 59.72 kB / 383.8 MB, free: 7.336 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.082e-05/0.3048, allocations: 332.7 kB / 384.2 MB, free: 7.016 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.305, allocations: 74.12 kB / 384.2 MB, free: 6.988 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.3052, allocations: 161.5 kB / 384.4 MB, free: 6.871 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008083/0.306, allocations: 358.9 kB / 384.7 MB, free: 6.727 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.306, allocations: 2.656 kB / 384.7 MB, free: 6.727 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004397/0.3064, allocations: 283.7 kB / 385 MB, free: 6.598 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.3065, allocations: 4.531 kB / 385 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3065, allocations: 1.031 kB / 385 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.3065, allocations: 3.188 kB / 385 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003327/0.3068, allocations: 80.81 kB / 385.1 MB, free: 6.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.3068, allocations: 6.438 kB / 385.1 MB, free: 6.594 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001868/0.307, allocations: 37.31 kB / 385.2 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.038e-05/0.3071, allocations: 12.45 kB / 385.2 MB, free: 6.566 MB / 318.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002624/0.3073, allocations: 155.8 kB / 385.3 MB, free: 6.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.278e-05/0.3074, allocations: 24.98 kB / 385.3 MB, free: 6.418 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.336e-05/0.3075, allocations: 34.08 kB / 385.4 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.3075, allocations: 2.906 kB / 385.4 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.3075, allocations: 2.062 kB / 385.4 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3075, allocations: 2.672 kB / 385.4 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.3086, allocations: 0.7735 MB / 386.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.3086, allocations: 1.625 kB / 386.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002515/0.3089, allocations: 51.22 kB / 386.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002997/0.3092, allocations: 89.66 kB / 386.3 MB, free: 5.859 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.3092, allocations: 9.156 kB / 386.3 MB, free: 5.855 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001754/0.311, allocations: 1.978 MB / 388.3 MB, free: 4.164 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.311, allocations: 1.25 kB / 388.3 MB, free: 4.164 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007157/0.3117, allocations: 0.5066 MB / 388.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.566e-05/0.3118, allocations: 100.6 kB / 388.9 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.238e-05/0.3118, allocations: 12.22 kB / 388.9 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/0.312, allocations: 11.78 kB / 388.9 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.552e-05/0.3121, allocations: 22.78 kB / 388.9 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.3121, allocations: 10.8 kB / 388.9 MB, free: 3.742 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001073/0.3122, allocations: 151.4 kB / 389.1 MB, free: 3.645 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3122, allocations: 0 / 389.1 MB, free: 3.645 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003919/0.3126, allocations: 116.8 kB / 389.2 MB, free: 3.605 MB / 318.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.377e-05/0.3127, allocations: 111 kB / 389.3 MB, free: 3.512 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004235/0.3131, allocations: 205.4 kB / 389.5 MB, free: 3.457 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3131, allocations: 1.281 kB / 389.5 MB, free: 3.457 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004291/0.3136, allocations: 273.6 kB / 389.8 MB, free: 3.285 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.3139, allocations: 26.34 kB / 389.8 MB, free: 3.27 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.3151, allocations: 0.844 MB / 390.7 MB, free: 2.715 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002395/0.3153, allocations: 0.7853 MB / 391.4 MB, free: 2.016 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.178e-05/0.3154, allocations: 26.08 kB / 391.5 MB, free: 2.012 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.351e-05/0.3155, allocations: 20.81 kB / 391.5 MB, free: 2.004 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3155, allocations: 3.938 kB / 391.5 MB, free: 2 MB / 318.1 MB Notification: Performance of Templates: time 0.007038/0.3225, allocations: 2.952 MB / 394.4 MB, free: 1.781 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.CoupledInductors.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.CoupledInductors -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1)