Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1256,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") translateModel(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1256,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001439/0.001439, allocations: 190.4 kB / 16.25 MB, free: 6.625 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.836/1.836, allocations: 205.1 MB / 222.1 MB, free: 4.719 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.001415/0.001415, allocations: 51.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2952, allocations: 46.63 MB / 324.9 MB, free: 1.961 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003072/0.2983, allocations: 2.062 MB / 326.9 MB, free: 340 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009659/0.2993, allocations: 0.5955 MB / 327.5 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.108e-05/0.2994, allocations: 2.344 kB / 327.5 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.722e-05/0.2995, allocations: 17.25 kB / 327.5 MB, free: 15.84 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001306/0.2996, allocations: 35.81 kB / 327.6 MB, free: 15.81 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003162/0.2999, allocations: 85.83 kB / 327.6 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001984/0.3001, allocations: 178.9 kB / 327.8 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.3003, allocations: 48.45 kB / 327.9 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.3005, allocations: 84.02 kB / 327.9 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001019/0.3006, allocations: 73.31 kB / 328 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.891e-05/0.3007, allocations: 18.8 kB / 328 MB, free: 15.51 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.183e-05/0.3007, allocations: 19.34 kB / 328.1 MB, free: 15.51 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.044e-05/0.3007, allocations: 39.81 kB / 328.1 MB, free: 15.47 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.03e-05/0.3008, allocations: 75.03 kB / 328.2 MB, free: 15.42 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002215/0.301, allocations: 171 kB / 328.3 MB, free: 15.3 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3011, allocations: 3.938 kB / 328.3 MB, free: 15.29 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3011, allocations: 0 / 328.3 MB, free: 15.29 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.3011, allocations: 0 / 328.3 MB, free: 15.29 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0008246/0.3019, allocations: 470.2 kB / 328.8 MB, free: 14.85 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.302, allocations: 9.531 kB / 328.8 MB, free: 14.85 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.696e-05/0.302, allocations: 16.66 kB / 328.8 MB, free: 14.84 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.3022, allocations: 196.4 kB / 329 MB, free: 14.62 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.3022, allocations: 11.84 kB / 329 MB, free: 14.62 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.231e-05/0.3023, allocations: 11.5 kB / 329 MB, free: 14.61 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003226/0.3026, allocations: 153.5 kB / 329.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.3026, allocations: 0 / 329.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.3026, allocations: 6.469 kB / 329.2 MB, free: 14.49 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.3027, allocations: 1.219 kB / 329.2 MB, free: 14.49 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002797/0.3029, allocations: 96.31 kB / 329.3 MB, free: 14.45 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009483/0.3039, allocations: 0.5028 MB / 329.8 MB, free: 13.98 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.3042, allocations: 113 kB / 329.9 MB, free: 13.91 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001943/0.3044, allocations: 70.8 kB / 330 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.3045, allocations: 5.391 kB / 330 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.3045, allocations: 35.78 kB / 330 MB, free: 13.82 MB / 270.1 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.3045, allocations: 0 / 330 MB, free: 13.82 MB / 270.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005365/0.305, allocations: 144.6 kB / 330.2 MB, free: 13.74 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/0.3051, allocations: 108 kB / 330.3 MB, free: 13.61 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.3053, allocations: 157.4 kB / 330.4 MB, free: 13.48 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.317e-05/0.3053, allocations: 25.7 kB / 330.4 MB, free: 13.45 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.598e-05/0.3054, allocations: 123 kB / 330.6 MB, free: 13.34 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.902e-05/0.3054, allocations: 30.69 kB / 330.6 MB, free: 13.31 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.612e-05/0.3055, allocations: 34.81 kB / 330.6 MB, free: 13.28 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3056, allocations: 322.1 kB / 330.9 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.3058, allocations: 37.67 kB / 331 MB, free: 12.94 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.3059, allocations: 83.64 kB / 331.1 MB, free: 12.87 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002554/0.3062, allocations: 101.5 kB / 331.2 MB, free: 12.81 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3062, allocations: 0 / 331.2 MB, free: 12.81 MB / 270.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003337/0.3065, allocations: 149.5 kB / 331.3 MB, free: 12.72 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.3066, allocations: 8.594 kB / 331.3 MB, free: 12.71 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.3066, allocations: 1.125 kB / 331.3 MB, free: 12.71 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.3066, allocations: 1.25 kB / 331.3 MB, free: 12.71 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006081/0.3072, allocations: 83.45 kB / 331.4 MB, free: 12.69 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001477/0.3087, allocations: 1.505 MB / 332.9 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.3089, allocations: 23.52 kB / 332.9 MB, free: 11.12 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.3089, allocations: 10.66 kB / 332.9 MB, free: 11.11 MB / 270.1 MB 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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001178/0.309, allocations: 123.8 kB / 333.1 MB, free: 10.99 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.802e-05/0.3091, allocations: 13.69 kB / 333.1 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004662/0.3096, allocations: 154.3 kB / 333.2 MB, free: 10.88 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.3096, allocations: 1.094 kB / 333.2 MB, free: 10.88 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.3096, allocations: 3.938 kB / 333.2 MB, free: 10.87 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.3096, allocations: 5 kB / 333.2 MB, free: 10.87 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007379/0.3103, allocations: 464.8 kB / 333.7 MB, free: 10.44 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3103, allocations: 0.9375 kB / 333.7 MB, free: 10.44 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001397/0.3105, allocations: 25.48 kB / 333.7 MB, free: 10.43 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002172/0.3107, allocations: 30.86 kB / 333.7 MB, free: 10.41 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.3107, allocations: 5.156 kB / 333.7 MB, free: 10.41 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00113/0.3119, allocations: 1.397 MB / 335.1 MB, free: 8.961 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3119, allocations: 3.938 kB / 335.1 MB, free: 8.957 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005859/0.3125, allocations: 292.9 kB / 335.4 MB, free: 8.734 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.023e-05/0.3126, allocations: 88.36 kB / 335.5 MB, free: 8.633 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.514e-05/0.3126, allocations: 5.125 kB / 335.5 MB, free: 8.629 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.3128, allocations: 21.55 kB / 335.5 MB, free: 8.617 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.932e-05/0.3128, allocations: 8.453 kB / 335.6 MB, free: 8.613 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/0.3128, allocations: 2.25 kB / 335.6 MB, free: 8.613 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001001/0.3129, allocations: 117.6 kB / 335.7 MB, free: 8.52 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3129, allocations: 0 / 335.7 MB, free: 8.52 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002955/0.3132, allocations: 40.5 kB / 335.7 MB, free: 8.512 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.i) * 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 (7): * Single equations (assignments): 6 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001274/0.3134, allocations: 96.5 kB / 335.8 MB, free: 8.426 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007063/0.3141, allocations: 149 kB / 335.9 MB, free: 8.309 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3141, allocations: 3.938 kB / 336 MB, free: 8.305 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002982/0.3144, allocations: 162.7 kB / 336.1 MB, free: 8.133 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.3147, allocations: 12 kB / 336.1 MB, free: 8.121 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/0.3163, allocations: 0.5906 MB / 336.7 MB, free: 7.504 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.3166, allocations: 0.7118 MB / 337.4 MB, free: 6.766 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 6.011e-05/0.3167, allocations: 8.562 kB / 337.4 MB, free: 6.758 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.682e-05/0.3167, allocations: 19.42 kB / 337.5 MB, free: 6.738 MB / 270.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3167, allocations: 4 kB / 337.5 MB, free: 6.734 MB / 270.1 MB Notification: Performance of Templates: time 0.00431/0.321, allocations: 1.614 MB / 339.1 MB, free: 5.121 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1)