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.001466/0.00147, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 193.5 kB / 16.53 MB, free: 6.664 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.441/1.441, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.00137/0.00137, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2524, allocations: 46.63 MB / 325.3 MB, free: 1.859 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004456/0.2569, allocations: 3.447 MB / 328.8 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001415/0.2584, allocations: 0.7875 MB / 329.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001854/0.2586, allocations: 5.156 kB / 329.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001995/0.2588, allocations: 68.7 kB / 329.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002628/0.2591, allocations: 138.6 kB / 329.7 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002831/0.2593, allocations: 101 kB / 329.8 MB, free: 14.19 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005506/0.2599, allocations: 0.5026 MB / 330.3 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.2602, allocations: 131.4 kB / 330.5 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002787/0.2605, allocations: 194.5 kB / 330.7 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002648/0.2608, allocations: 203.8 kB / 330.9 MB, free: 13.56 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.622e-05/0.2609, allocations: 43.41 kB / 330.9 MB, free: 13.55 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.585e-05/0.2609, allocations: 38.91 kB / 330.9 MB, free: 13.55 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.872e-05/0.261, allocations: 98.42 kB / 331 MB, free: 13.47 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002077/0.2613, allocations: 213.5 kB / 331.3 MB, free: 13.33 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004588/0.2617, allocations: 498.6 kB / 331.7 MB, free: 12.96 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.2617, allocations: 1.031 kB / 331.7 MB, free: 12.96 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2617, allocations: 0 / 331.7 MB, free: 12.96 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.2618, allocations: 0 / 331.7 MB, free: 12.96 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.00115/0.2629, allocations: 0.72 MB / 332.5 MB, free: 12.34 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.263, allocations: 10.09 kB / 332.5 MB, free: 12.34 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.393e-05/0.2631, allocations: 43.5 kB / 332.5 MB, free: 12.32 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003612/0.2634, allocations: 316.5 kB / 332.8 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.869e-05/0.2635, allocations: 25.59 kB / 332.8 MB, free: 12 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.945e-05/0.2635, allocations: 29.16 kB / 332.9 MB, free: 12 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006651/0.2642, allocations: 365.7 kB / 333.2 MB, free: 11.76 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.2642, allocations: 0 / 333.2 MB, free: 11.76 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.2643, allocations: 11.56 kB / 333.2 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/0.2643, allocations: 7.875 kB / 333.3 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005697/0.2649, allocations: 271.5 kB / 333.5 MB, free: 11.58 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00192/0.2668, allocations: 1.422 MB / 334.9 MB, free: 10.06 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004124/0.2672, allocations: 214.5 kB / 335.1 MB, free: 9.84 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002118/0.2674, allocations: 112.8 kB / 335.3 MB, free: 9.727 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.2675, allocations: 7.938 kB / 335.3 MB, free: 9.719 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.2675, allocations: 30.97 kB / 335.3 MB, free: 9.68 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 3.537e-06/0.2675, allocations: 0 / 335.3 MB, free: 9.68 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001567/0.2691, allocations: 0.7056 MB / 336 MB, free: 8.902 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.2691, allocations: 51.41 kB / 336.1 MB, free: 8.84 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000321/0.2695, allocations: 304.6 kB / 336.3 MB, free: 8.539 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.379e-05/0.2695, allocations: 33.7 kB / 336.4 MB, free: 8.5 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.2697, allocations: 212.1 kB / 336.6 MB, free: 8.285 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.111e-05/0.2697, allocations: 78.89 kB / 336.7 MB, free: 8.207 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.311e-05/0.2698, allocations: 49.7 kB / 336.7 MB, free: 8.152 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.27, allocations: 342.8 kB / 337 MB, free: 7.809 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001808/0.2701, allocations: 79.97 kB / 337.1 MB, free: 7.73 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.2704, allocations: 124.2 kB / 337.2 MB, free: 7.594 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003645/0.2707, allocations: 196.1 kB / 337.4 MB, free: 7.387 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2707, allocations: 4 kB / 337.4 MB, free: 7.383 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006711/0.2714, allocations: 359.5 kB / 337.8 MB, free: 7.016 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.2714, allocations: 4 kB / 337.8 MB, free: 7.012 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.2715, allocations: 4 kB / 337.8 MB, free: 7.008 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004425/0.2719, allocations: 122.6 kB / 337.9 MB, free: 6.879 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001819/0.2721, allocations: 31.91 kB / 338 MB, free: 6.848 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003645/0.2758, allocations: 4.978 MB / 342.9 MB, free: 1.457 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000297/0.2761, allocations: 23.75 kB / 343 MB, free: 1.434 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.2761, allocations: 4 kB / 343 MB, free: 1.43 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 (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002079/0.2763, allocations: 145.8 kB / 343.1 MB, free: 1.277 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.503e-05/0.2764, allocations: 35.56 kB / 343.1 MB, free: 1.242 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.044e-05/0.2765, allocations: 43.11 kB / 343.2 MB, free: 1.195 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.2765, allocations: 4 kB / 343.2 MB, free: 1.191 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.2765, allocations: 4.062 kB / 343.2 MB, free: 1.188 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.2765, allocations: 0 / 343.2 MB, free: 1.188 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003906/0.2769, allocations: 381.2 kB / 343.6 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.2769, allocations: 0 / 343.6 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.277, allocations: 20.11 kB / 343.6 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003085/0.2773, allocations: 114.5 kB / 343.7 MB, free: 0.625 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/0.2774, allocations: 12 kB / 343.7 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003275/0.2806, allocations: 4.955 MB / 348.7 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.2807, allocations: 0 / 348.7 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005896/0.2813, allocations: 418.2 kB / 349.1 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.2814, allocations: 128.6 kB / 349.2 MB, free: 10.67 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.715e-05/0.2814, allocations: 4 kB / 349.2 MB, free: 10.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002313/0.2817, allocations: 19.98 kB / 349.2 MB, free: 10.64 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.692e-05/0.2818, allocations: 31.95 kB / 349.2 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.2818, allocations: 16.06 kB / 349.3 MB, free: 10.6 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002196/0.282, allocations: 219.1 kB / 349.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.282, allocations: 0 / 349.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006831/0.2827, allocations: 111.7 kB / 349.6 MB, free: 10.28 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 (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001372/0.2829, allocations: 107.2 kB / 349.7 MB, free: 10.16 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000873/0.2838, allocations: 0.5745 MB / 350.3 MB, free: 9.547 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.2838, allocations: 0 / 350.3 MB, free: 9.547 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004736/0.2842, allocations: 491.8 kB / 350.7 MB, free: 9.027 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004801/0.2847, allocations: 53.19 kB / 350.8 MB, free: 8.969 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.2858, allocations: 0.6191 MB / 351.4 MB, free: 8.328 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.2862, allocations: 0.7992 MB / 352.2 MB, free: 7.504 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000111/0.2863, allocations: 22.97 kB / 352.2 MB, free: 7.48 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.88e-05/0.2863, allocations: 23.44 kB / 352.3 MB, free: 7.461 MB / 286.1 MB Notification: Performance of SimCode: time 1.804e-06/0.2864, allocations: 0 / 352.3 MB, free: 7.461 MB / 286.1 MB Notification: Performance of Templates: time 0.009519/0.2959, allocations: 5.372 MB / 357.6 MB, free: 2.086 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)