Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.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.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") translateModel(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006673/0.006673, allocations: 94.06 kB / 15.73 MB, free: 6.051 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.001297/0.001297, allocations: 198.5 kB / 16.68 MB, free: 5.973 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.423/1.423, allocations: 205.1 MB / 222.5 MB, free: 12.24 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.001121/0.001121, allocations: 43.94 kB / 326.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09978/0.1009, allocations: 46.61 MB / 373.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor): time 0.003544/0.1045, allocations: 2.679 MB / 375.8 MB, free: 1.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.1058, allocations: 0.9041 MB / 376.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.106, allocations: 4 kB / 376.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002407/0.1062, allocations: 67.42 kB / 376.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002586/0.1065, allocations: 91.25 kB / 376.9 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002449/0.1067, allocations: 107.8 kB / 377 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003402/0.1071, allocations: 346.7 kB / 377.3 MB, free: 388 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002006/0.1073, allocations: 121.6 kB / 377.4 MB, free: 264 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001759/0.1075, allocations: 135.5 kB / 377.6 MB, free: 128 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2273/0.3348, allocations: 142.6 kB / 377.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001626/0.335, allocations: 29 kB / 377.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.617e-05/0.3351, allocations: 30.16 kB / 377.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.695e-05/0.3352, allocations: 68.45 kB / 377.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001783/0.3354, allocations: 157 kB / 378 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005444/0.336, allocations: 362.1 kB / 378.3 MB, free: 9.992 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.336, allocations: 0 / 378.3 MB, free: 9.992 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.248e-06/0.336, allocations: 0 / 378.3 MB, free: 9.992 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.026e-06/0.336, allocations: 4.25 kB / 378.3 MB, free: 9.992 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.000978/0.337, allocations: 0.606 MB / 379 MB, free: 9.539 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.337, allocations: 13.48 kB / 379 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.944e-05/0.3371, allocations: 40.73 kB / 379 MB, free: 9.512 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003663/0.3375, allocations: 254.5 kB / 379.3 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.136e-05/0.3375, allocations: 19.23 kB / 379.3 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.811e-05/0.3376, allocations: 31.72 kB / 379.3 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005004/0.3381, allocations: 246.1 kB / 379.5 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.3381, allocations: 3.938 kB / 379.5 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.261e-05/0.3382, allocations: 13.72 kB / 379.6 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.3382, allocations: 6.812 kB / 379.6 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004677/0.3387, allocations: 209.7 kB / 379.8 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001614/0.3403, allocations: 1.009 MB / 380.8 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005206/0.3408, allocations: 205.1 kB / 381 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002713/0.3411, allocations: 109 kB / 381.1 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.378e-05/0.3411, allocations: 7.75 kB / 381.1 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.3412, allocations: 39.25 kB / 381.1 MB, free: 8.664 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.3412, allocations: 0 / 381.1 MB, free: 8.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.004961/0.3461, allocations: 1.537 MB / 382.7 MB, free: 8.191 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.3462, allocations: 60.36 kB / 382.7 MB, free: 8.125 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002437/0.3464, allocations: 233.2 kB / 383 MB, free: 8.016 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.3465, allocations: 34.42 kB / 383 MB, free: 7.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.3466, allocations: 184.4 kB / 383.2 MB, free: 7.852 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.521e-05/0.3467, allocations: 127.1 kB / 383.3 MB, free: 7.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.3468, allocations: 64.2 kB / 383.4 MB, free: 7.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.828e-05/0.3469, allocations: 339.9 kB / 383.7 MB, free: 7.426 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002428/0.3471, allocations: 105.8 kB / 383.8 MB, free: 7.391 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002842/0.3474, allocations: 166.5 kB / 384 MB, free: 7.297 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005185/0.348, allocations: 275.8 kB / 384.2 MB, free: 7.152 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.348, allocations: 4.656 kB / 384.2 MB, free: 7.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001578/0.3495, allocations: 0.5357 MB / 384.8 MB, free: 6.934 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.3496, allocations: 5.312 kB / 384.8 MB, free: 6.934 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3496, allocations: 2.188 kB / 384.8 MB, free: 6.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/0.3509, allocations: 245.2 kB / 385 MB, free: 6.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002976/0.3512, allocations: 58.48 kB / 385.1 MB, free: 6.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004592/0.3558, allocations: 4.136 MB / 389.2 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000248/0.3561, allocations: 20.64 kB / 389.2 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.18e-05/0.3561, allocations: 10.38 kB / 389.2 MB, free: 3.266 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002136/0.3564, allocations: 150.2 kB / 389.4 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.516e-05/0.3564, allocations: 29.36 kB / 389.4 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.354e-05/0.3565, allocations: 39.28 kB / 389.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.3565, allocations: 3.625 kB / 389.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/0.3566, allocations: 2.281 kB / 389.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.3566, allocations: 5.875 kB / 389.5 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002238/0.3588, allocations: 0.9776 MB / 390.4 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.3588, allocations: 2.125 kB / 390.4 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002147/0.3591, allocations: 43.89 kB / 390.5 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00117/0.3602, allocations: 247.8 kB / 390.7 MB, free: 2.449 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.955e-05/0.3603, allocations: 7.484 kB / 390.7 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004489/0.3648, allocations: 4.135 MB / 394.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.3648, allocations: 5.312 kB / 394.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001851/0.3667, allocations: 0.7307 MB / 395.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/0.3668, allocations: 100.3 kB / 395.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.159e-05/0.3669, allocations: 17.44 kB / 395.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.3671, allocations: 13.42 kB / 395.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.57e-05/0.3672, allocations: 26.06 kB / 395.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.367e-05/0.3672, allocations: 11.5 kB / 395.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000186/0.3674, allocations: 167 kB / 395.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.022e-06/0.3674, allocations: 0 / 395.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000675/0.3681, allocations: 104.4 kB / 396 MB, free: 14.25 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.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 (19): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001652/0.3683, allocations: 98.66 kB / 396.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001152/0.3694, allocations: 0.5781 MB / 396.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3694, allocations: 0 / 396.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006322/0.3701, allocations: 441.6 kB / 397.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003527/0.3705, allocations: 24.83 kB / 397.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00167/0.3721, allocations: 0.704 MB / 397.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004959/0.3726, allocations: 0.7773 MB / 398.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.3728, allocations: 18.69 kB / 398.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.693e-05/0.3728, allocations: 18.05 kB / 398.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3728, allocations: 0 / 398.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of Templates: time 0.01244/0.3853, allocations: 5.493 MB / 404.2 MB, free: 10.98 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1)