Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009176/0.0009174, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.0009375/0.0009374, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.346/1.346, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004371/0.0004372, allocations: 12 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.2283, allocations: 47.59 MB / 326.5 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.002989/0.2313, allocations: 2.951 MB / 329.4 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.2325, allocations: 0.7558 MB / 330.2 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.2327, allocations: 10.03 kB / 330.2 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.2328, allocations: 54.22 kB / 330.2 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001861/0.233, allocations: 109.2 kB / 330.4 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002264/0.2333, allocations: 78.22 kB / 330.4 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004368/0.2337, allocations: 471.8 kB / 330.9 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002123/0.2339, allocations: 114.6 kB / 331 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002048/0.2341, allocations: 159.1 kB / 331.2 MB, free: 13.8 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002313/0.2344, allocations: 183.7 kB / 331.3 MB, free: 13.68 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.977e-05/0.2344, allocations: 20.56 kB / 331.4 MB, free: 13.68 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.752e-05/0.2345, allocations: 20.62 kB / 331.4 MB, free: 13.68 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.553e-05/0.2346, allocations: 66.34 kB / 331.4 MB, free: 13.63 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.86e-05/0.2347, allocations: 101.8 kB / 331.5 MB, free: 13.56 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003277/0.235, allocations: 345.4 kB / 331.9 MB, free: 13.31 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.924e-06/0.235, allocations: 9.031 kB / 331.9 MB, free: 13.3 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.235, allocations: 0 / 331.9 MB, free: 13.3 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.235, allocations: 0 / 331.9 MB, free: 13.3 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001014/0.2361, allocations: 0.6635 MB / 332.5 MB, free: 12.73 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.2361, allocations: 9.906 kB / 332.6 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.249e-05/0.2362, allocations: 46.66 kB / 332.6 MB, free: 12.71 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003626/0.2366, allocations: 299.6 kB / 332.9 MB, free: 12.41 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.756e-05/0.2366, allocations: 28.61 kB / 332.9 MB, free: 12.4 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.381e-05/0.2367, allocations: 28.66 kB / 333 MB, free: 12.39 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006369/0.2373, allocations: 360.5 kB / 333.3 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.2373, allocations: 3.938 kB / 333.3 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.31e-05/0.2374, allocations: 11.34 kB / 333.3 MB, free: 12.15 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.2374, allocations: 8.031 kB / 333.3 MB, free: 12.15 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005804/0.238, allocations: 278.6 kB / 333.6 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0019/0.2399, allocations: 1.424 MB / 335 MB, free: 10.73 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000409/0.2403, allocations: 230.4 kB / 335.2 MB, free: 10.5 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000204/0.2405, allocations: 112.8 kB / 335.4 MB, free: 10.38 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.2405, allocations: 8 kB / 335.4 MB, free: 10.38 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.2406, allocations: 30.97 kB / 335.4 MB, free: 10.34 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.2406, allocations: 4 kB / 335.4 MB, free: 10.33 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001449/0.242, allocations: 0.7213 MB / 336.1 MB, free: 9.539 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.2421, allocations: 63.3 kB / 336.2 MB, free: 9.465 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003016/0.2424, allocations: 304.5 kB / 336.5 MB, free: 9.164 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.2424, allocations: 37.7 kB / 336.5 MB, free: 9.121 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.2426, allocations: 200.2 kB / 336.7 MB, free: 8.918 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.554e-05/0.2426, allocations: 78.91 kB / 336.8 MB, free: 8.84 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.287e-05/0.2427, allocations: 4 kB / 336.8 MB, free: 8.836 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.2428, allocations: 338.8 kB / 337.1 MB, free: 8.496 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000193/0.243, allocations: 87.95 kB / 337.2 MB, free: 8.41 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.2432, allocations: 124.2 kB / 337.3 MB, free: 8.273 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002039/0.2434, allocations: 99.86 kB / 337.4 MB, free: 8.176 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.2434, allocations: 0 / 337.4 MB, free: 8.176 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000718/0.2441, allocations: 371.5 kB / 337.8 MB, free: 7.797 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.2442, allocations: 7.984 kB / 337.8 MB, free: 7.789 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2442, allocations: 0 / 337.8 MB, free: 7.789 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003727/0.2446, allocations: 114.5 kB / 337.9 MB, free: 7.668 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.2447, allocations: 40.2 kB / 338 MB, free: 7.629 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003437/0.2482, allocations: 4.453 MB / 342.4 MB, free: 2.773 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002066/0.2484, allocations: 31.8 kB / 342.4 MB, free: 2.742 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/0.2484, allocations: 15.89 kB / 342.5 MB, free: 2.727 MB / 270.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: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001586/0.2486, allocations: 145.8 kB / 342.6 MB, free: 2.574 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.805e-05/0.2487, allocations: 31.62 kB / 342.6 MB, free: 2.543 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.817e-05/0.2487, allocations: 39.17 kB / 342.7 MB, free: 2.504 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.2488, allocations: 4 kB / 342.7 MB, free: 2.5 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.2488, allocations: 0 / 342.7 MB, free: 2.5 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.2488, allocations: 0 / 342.7 MB, free: 2.5 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004029/0.2492, allocations: 385.2 kB / 343 MB, free: 2.074 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2492, allocations: 0 / 343 MB, free: 2.074 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.2493, allocations: 27.92 kB / 343.1 MB, free: 2.047 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003043/0.2496, allocations: 114.6 kB / 343.2 MB, free: 1.926 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.796e-05/0.2496, allocations: 7.984 kB / 343.2 MB, free: 1.918 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003334/0.253, allocations: 4.441 MB / 347.6 MB, free: 13.08 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.253, allocations: 0 / 347.6 MB, free: 13.08 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005816/0.2536, allocations: 418.2 kB / 348 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001351/0.2537, allocations: 128.6 kB / 348.2 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.471e-05/0.2538, allocations: 4 kB / 348.2 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.254, allocations: 23.98 kB / 348.2 MB, free: 12.47 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.567e-05/0.2541, allocations: 35.89 kB / 348.2 MB, free: 12.44 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.121e-05/0.2541, allocations: 4 kB / 348.2 MB, free: 12.43 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001965/0.2543, allocations: 215.1 kB / 348.4 MB, free: 12.22 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2543, allocations: 3.938 kB / 348.4 MB, free: 12.22 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006296/0.2549, allocations: 111.8 kB / 348.6 MB, free: 12.11 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001195/0.2551, allocations: 107.2 kB / 348.7 MB, free: 11.99 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008448/0.2559, allocations: 0.5741 MB / 349.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.654e-06/0.2559, allocations: 0 / 349.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004824/0.2564, allocations: 499.8 kB / 349.7 MB, free: 10.85 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004601/0.2569, allocations: 61.52 kB / 349.8 MB, free: 10.79 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001156/0.2581, allocations: 0.7546 MB / 350.5 MB, free: 10.01 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/0.2584, allocations: 0.7951 MB / 351.3 MB, free: 9.188 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000116/0.2586, allocations: 22.97 kB / 351.4 MB, free: 9.164 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.106e-05/0.2586, allocations: 23.42 kB / 351.4 MB, free: 9.141 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2586, allocations: 0 / 351.4 MB, free: 9.141 MB / 286.1 MB Notification: Performance of Templates: time 0.008578/0.2672, allocations: 4.695 MB / 356.1 MB, free: 4.445 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1)