Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001084/0.001084, allocations: 103 kB / 15.06 MB, free: 1.098 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.00124/0.00124, allocations: 173.3 kB / 15.95 MB, free: 212 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.586/1.586, 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.0004505/0.0004506, allocations: 12 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2575, allocations: 47.58 MB / 326.4 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.002719/0.2603, allocations: 2.775 MB / 329.2 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.2616, allocations: 0.786 MB / 330 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001602/0.2618, allocations: 5.094 kB / 330 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.471e-05/0.2619, allocations: 49.27 kB / 330.1 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002991/0.2622, allocations: 159.4 kB / 330.2 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002377/0.2624, allocations: 85.02 kB / 330.3 MB, free: 14.35 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004123/0.2629, allocations: 344.1 kB / 330.6 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000212/0.2631, allocations: 107.6 kB / 330.7 MB, free: 14.07 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001961/0.2633, allocations: 160.5 kB / 330.9 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002208/0.2635, allocations: 180 kB / 331.1 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.364e-05/0.2636, allocations: 24.22 kB / 331.1 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.878e-05/0.2636, allocations: 20.88 kB / 331.1 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.679e-05/0.2637, allocations: 62.19 kB / 331.2 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.364e-05/0.2638, allocations: 105 kB / 331.3 MB, free: 13.74 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003032/0.2641, allocations: 348.6 kB / 331.6 MB, free: 13.48 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.574e-06/0.2641, allocations: 0 / 331.6 MB, free: 13.48 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2641, allocations: 4 kB / 331.6 MB, free: 13.48 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.2641, allocations: 0 / 331.6 MB, free: 13.48 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.001011/0.2652, allocations: 0.66 MB / 332.3 MB, free: 12.91 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.2652, allocations: 8.688 kB / 332.3 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.989e-05/0.2653, allocations: 47.16 kB / 332.3 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.2657, allocations: 299.3 kB / 332.6 MB, free: 12.59 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.736e-05/0.2657, allocations: 28.3 kB / 332.7 MB, free: 12.58 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.045e-05/0.2657, allocations: 28.66 kB / 332.7 MB, free: 12.57 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006496/0.2664, allocations: 358.3 kB / 333 MB, free: 12.34 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.2664, allocations: 0 / 333 MB, free: 12.34 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.604e-05/0.2665, allocations: 19.19 kB / 333.1 MB, free: 12.32 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.2665, allocations: 8.594 kB / 333.1 MB, free: 12.32 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005439/0.267, allocations: 277.7 kB / 333.3 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.2689, allocations: 1.428 MB / 334.8 MB, free: 10.96 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003935/0.2693, allocations: 226.4 kB / 335 MB, free: 10.73 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.2693, allocations: 4 kB / 335 MB, free: 10.73 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.2694, allocations: 38.56 kB / 335 MB, free: 10.68 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.372e-06/0.2694, allocations: 0 / 335 MB, free: 10.68 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001441/0.2708, allocations: 0.703 MB / 335.7 MB, free: 9.91 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.2709, allocations: 67.16 kB / 335.8 MB, free: 9.832 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00029/0.2712, allocations: 308.5 kB / 336.1 MB, free: 9.527 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.2712, allocations: 29.7 kB / 336.1 MB, free: 9.492 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.2713, allocations: 208.2 kB / 336.3 MB, free: 9.281 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.164e-05/0.2714, allocations: 78.83 kB / 336.4 MB, free: 9.203 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.363e-05/0.2714, allocations: 8 kB / 336.4 MB, free: 9.195 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.2715, allocations: 334.8 kB / 336.7 MB, free: 8.859 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.2717, allocations: 95.89 kB / 336.8 MB, free: 8.766 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.2719, allocations: 116.2 kB / 336.9 MB, free: 8.637 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001962/0.2721, allocations: 99.91 kB / 337 MB, free: 8.539 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2721, allocations: 0 / 337 MB, free: 8.539 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000703/0.2728, allocations: 371.5 kB / 337.4 MB, free: 8.16 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.2729, allocations: 4 kB / 337.4 MB, free: 8.156 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.2729, allocations: 4.281 kB / 337.4 MB, free: 8.152 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000397/0.2733, allocations: 114.6 kB / 337.5 MB, free: 8.031 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.2735, allocations: 43.91 kB / 337.6 MB, free: 7.988 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003264/0.2768, allocations: 4.48 MB / 342 MB, free: 3.105 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002493/0.277, allocations: 31.77 kB / 342.1 MB, free: 3.074 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/0.2771, allocations: 4 kB / 342.1 MB, free: 3.07 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.0001675/0.2772, allocations: 149.8 kB / 342.2 MB, free: 2.914 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.801e-05/0.2773, allocations: 35.69 kB / 342.3 MB, free: 2.879 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.714e-05/0.2774, allocations: 39.17 kB / 342.3 MB, free: 2.84 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.2774, allocations: 7.984 kB / 342.3 MB, free: 2.832 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.2774, allocations: 0 / 342.3 MB, free: 2.832 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2774, allocations: 0 / 342.3 MB, free: 2.832 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003828/0.2778, allocations: 381.2 kB / 342.7 MB, free: 2.41 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.2778, allocations: 3.984 kB / 342.7 MB, free: 2.406 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.2779, allocations: 27.92 kB / 342.7 MB, free: 2.379 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000318/0.2782, allocations: 114.5 kB / 342.8 MB, free: 2.258 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.2783, allocations: 4 kB / 342.8 MB, free: 2.254 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003116/0.2814, allocations: 4.473 MB / 347.3 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.2814, allocations: 0 / 347.3 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000636/0.282, allocations: 425.5 kB / 347.7 MB, free: 12.94 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/0.2822, allocations: 128.6 kB / 347.8 MB, free: 12.8 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.612e-05/0.2823, allocations: 4 kB / 347.8 MB, free: 12.79 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002484/0.2825, allocations: 23.97 kB / 347.9 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.238e-05/0.2826, allocations: 27.97 kB / 347.9 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.2826, allocations: 8 kB / 347.9 MB, free: 12.73 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002063/0.2828, allocations: 215.1 kB / 348.1 MB, free: 12.52 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.2829, allocations: 0 / 348.1 MB, free: 12.52 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006694/0.2835, allocations: 115.7 kB / 348.2 MB, free: 12.41 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.0001412/0.2837, allocations: 103.2 kB / 348.3 MB, free: 12.3 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008606/0.2845, allocations: 0.5779 MB / 348.9 MB, free: 11.68 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.2846, allocations: 4.125 kB / 348.9 MB, free: 11.68 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005363/0.2851, allocations: 491.7 kB / 349.4 MB, free: 11.16 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003603/0.2855, allocations: 61.5 kB / 349.5 MB, free: 11.1 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.2866, allocations: 0.7507 MB / 350.2 MB, free: 10.32 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/0.2871, allocations: 0.8029 MB / 351 MB, free: 9.488 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.2872, allocations: 22.97 kB / 351 MB, free: 9.465 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.132e-05/0.2873, allocations: 27.42 kB / 351.1 MB, free: 9.438 MB / 286.1 MB Notification: Performance of SimCode: time 6.02e-07/0.2873, allocations: 0 / 351.1 MB, free: 9.438 MB / 286.1 MB Notification: Performance of Templates: time 0.009554/0.2968, allocations: 4.684 MB / 355.7 MB, free: 4.754 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) Environment - environmentSimulation: