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.001252/0.001253, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.001585/0.001585, allocations: 177.3 kB / 15.95 MB, free: 216 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.584/1.584, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0005505/0.0005506, allocations: 12 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2776, allocations: 47.59 MB / 326.4 MB, free: 1.625 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003431/0.2811, allocations: 2.763 MB / 329.2 MB, free: 15.47 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001578/0.2827, allocations: 0.7903 MB / 330 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002875/0.283, allocations: 6.125 kB / 330 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000105/0.2831, allocations: 48.05 kB / 330.1 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003478/0.2835, allocations: 163.5 kB / 330.2 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002676/0.2837, allocations: 77.59 kB / 330.3 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004347/0.2842, allocations: 348.7 kB / 330.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002322/0.2844, allocations: 106.5 kB / 330.7 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002109/0.2846, allocations: 164.9 kB / 330.9 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002343/0.2849, allocations: 175.8 kB / 331.1 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.967e-05/0.2849, allocations: 20.72 kB / 331.1 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.914e-05/0.285, allocations: 24.19 kB / 331.1 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.228e-05/0.2851, allocations: 70.41 kB / 331.2 MB, free: 14.02 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001023/0.2852, allocations: 96.89 kB / 331.3 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003406/0.2855, allocations: 352.5 kB / 331.6 MB, free: 13.7 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2855, allocations: 0 / 331.6 MB, free: 13.7 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.2856, allocations: 0 / 331.6 MB, free: 13.7 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.2856, allocations: 1.25 kB / 331.6 MB, free: 13.7 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.0009972/0.2866, allocations: 0.6584 MB / 332.3 MB, free: 13.13 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.2866, allocations: 9.5 kB / 332.3 MB, free: 13.13 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.938e-05/0.2867, allocations: 50.52 kB / 332.3 MB, free: 13.11 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003488/0.2871, allocations: 298.5 kB / 332.6 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.2871, allocations: 33.8 kB / 332.7 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.422e-05/0.2872, allocations: 32.22 kB / 332.7 MB, free: 12.78 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005817/0.2877, allocations: 349.9 kB / 333 MB, free: 12.55 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.2878, allocations: 4 kB / 333 MB, free: 12.55 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.511e-05/0.2878, allocations: 15.47 kB / 333.1 MB, free: 12.54 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.2878, allocations: 7.875 kB / 333.1 MB, free: 12.54 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005416/0.2884, allocations: 278.2 kB / 333.3 MB, free: 12.41 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001893/0.2903, allocations: 1.433 MB / 334.8 MB, free: 11.11 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003959/0.2907, allocations: 214.5 kB / 335 MB, free: 10.89 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.2907, allocations: 8 kB / 335 MB, free: 10.89 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/0.2908, allocations: 38.5 kB / 335 MB, free: 10.84 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 2.645e-06/0.2908, allocations: 3.984 kB / 335 MB, free: 10.84 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001437/0.2922, allocations: 0.703 MB / 335.7 MB, free: 10.06 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.2923, allocations: 67.22 kB / 335.8 MB, free: 9.984 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003614/0.2926, allocations: 300.5 kB / 336.1 MB, free: 9.688 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.2927, allocations: 33.7 kB / 336.1 MB, free: 9.648 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.2928, allocations: 220.1 kB / 336.3 MB, free: 9.426 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.429e-05/0.2929, allocations: 70.91 kB / 336.4 MB, free: 9.355 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.248e-05/0.2929, allocations: 4 kB / 336.4 MB, free: 9.352 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002037/0.2931, allocations: 342.8 kB / 336.7 MB, free: 9.008 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/0.2933, allocations: 87.89 kB / 336.8 MB, free: 8.922 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002103/0.2935, allocations: 128.2 kB / 337 MB, free: 8.781 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.2938, allocations: 95.92 kB / 337 MB, free: 8.688 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.2938, allocations: 0 / 337 MB, free: 8.688 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007199/0.2945, allocations: 371.5 kB / 337.4 MB, free: 8.309 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.2945, allocations: 7.984 kB / 337.4 MB, free: 8.301 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2945, allocations: 0 / 337.4 MB, free: 8.301 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004134/0.295, allocations: 118.4 kB / 337.5 MB, free: 8.176 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.2951, allocations: 27.98 kB / 337.6 MB, free: 8.148 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004245/0.2994, allocations: 4.484 MB / 342 MB, free: 3.262 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002665/0.2997, allocations: 31.75 kB / 342.1 MB, free: 3.23 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.2997, allocations: 12.05 kB / 342.1 MB, free: 3.219 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.0002083/0.2999, allocations: 158 kB / 342.2 MB, free: 3.055 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.233e-05/0.3, allocations: 31.62 kB / 342.3 MB, free: 3.023 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.169e-05/0.3001, allocations: 39.17 kB / 342.3 MB, free: 2.984 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.3001, allocations: 7.938 kB / 342.3 MB, free: 2.977 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.3001, allocations: 0 / 342.3 MB, free: 2.977 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.3001, allocations: 0 / 342.3 MB, free: 2.977 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004301/0.3005, allocations: 385.2 kB / 342.7 MB, free: 2.551 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.3005, allocations: 4 kB / 342.7 MB, free: 2.547 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001124/0.3007, allocations: 19.98 kB / 342.7 MB, free: 2.527 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003824/0.3011, allocations: 118.4 kB / 342.8 MB, free: 2.402 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.3011, allocations: 4 kB / 342.8 MB, free: 2.398 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004035/0.3051, allocations: 4.477 MB / 347.3 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.3051, allocations: 0 / 347.3 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000754/0.3059, allocations: 409.6 kB / 347.7 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.3061, allocations: 128.6 kB / 347.8 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.002e-05/0.3061, allocations: 11.98 kB / 347.8 MB, free: 12.94 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002278/0.3064, allocations: 27.98 kB / 347.9 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.994e-05/0.3065, allocations: 23.91 kB / 347.9 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.3065, allocations: 8 kB / 347.9 MB, free: 12.88 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002282/0.3067, allocations: 215.1 kB / 348.1 MB, free: 12.67 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3067, allocations: 3.938 kB / 348.1 MB, free: 12.67 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006669/0.3074, allocations: 111.8 kB / 348.2 MB, free: 12.56 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.0001369/0.3075, allocations: 107.2 kB / 348.3 MB, free: 12.44 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008559/0.3084, allocations: 0.5741 MB / 348.9 MB, free: 11.83 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3084, allocations: 0 / 348.9 MB, free: 11.83 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006502/0.3091, allocations: 491.8 kB / 349.4 MB, free: 11.31 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003764/0.3095, allocations: 65.81 kB / 349.5 MB, free: 11.25 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.3107, allocations: 0.7546 MB / 350.2 MB, free: 10.46 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000372/0.3111, allocations: 0.8029 MB / 351 MB, free: 9.633 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001054/0.3112, allocations: 22.97 kB / 351 MB, free: 9.609 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.047e-05/0.3113, allocations: 19.44 kB / 351.1 MB, free: 9.59 MB / 286.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3113, allocations: 4 kB / 351.1 MB, free: 9.586 MB / 286.1 MB Notification: Performance of Templates: time 0.008963/0.3203, allocations: 4.68 MB / 355.7 MB, free: 4.906 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: