Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0009142/0.0009142, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.001156/0.001156, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.506/1.506, allocations: 205.4 MB / 223.4 MB, free: 5.301 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.0004338/0.0004339, allocations: 16 kB / 280.1 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2606, allocations: 47.59 MB / 327.7 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003165/0.2638, allocations: 2.947 MB / 330.7 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.2652, allocations: 0.7607 MB / 331.4 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000174/0.2654, allocations: 5.562 kB / 331.5 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.2656, allocations: 53.48 kB / 331.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002161/0.2658, allocations: 105.4 kB / 331.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002573/0.2661, allocations: 85.67 kB / 331.7 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004455/0.2665, allocations: 464.3 kB / 332.1 MB, free: 14 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002316/0.2668, allocations: 111.7 kB / 332.3 MB, free: 13.92 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002464/0.267, allocations: 158.4 kB / 332.4 MB, free: 13.84 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002325/0.2673, allocations: 180.5 kB / 332.6 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.365e-05/0.2673, allocations: 20.34 kB / 332.6 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.992e-05/0.2674, allocations: 19.56 kB / 332.6 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.632e-05/0.2675, allocations: 66.59 kB / 332.7 MB, free: 13.67 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.541e-05/0.2676, allocations: 101.6 kB / 332.8 MB, free: 13.6 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004081/0.268, allocations: 354.4 kB / 333.1 MB, free: 13.34 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.268, allocations: 4 kB / 333.1 MB, free: 13.34 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.268, allocations: 0 / 333.1 MB, free: 13.34 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.268, allocations: 4.969 kB / 333.1 MB, free: 13.33 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.001031/0.2691, allocations: 0.6602 MB / 333.8 MB, free: 12.77 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.2691, allocations: 8.75 kB / 333.8 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.638e-05/0.2692, allocations: 46.53 kB / 333.9 MB, free: 12.75 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003894/0.2696, allocations: 299.2 kB / 334.1 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.789e-05/0.2697, allocations: 29.55 kB / 334.2 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.996e-05/0.2697, allocations: 32 kB / 334.2 MB, free: 12.42 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006695/0.2704, allocations: 359.8 kB / 334.6 MB, free: 12.19 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.2704, allocations: 1.5 kB / 334.6 MB, free: 12.19 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.418e-05/0.2705, allocations: 14.47 kB / 334.6 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.2705, allocations: 8.531 kB / 334.6 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005789/0.2711, allocations: 277.8 kB / 334.9 MB, free: 12.05 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.2732, allocations: 1.421 MB / 336.3 MB, free: 10.69 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000427/0.2736, allocations: 234.4 kB / 336.5 MB, free: 10.45 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002348/0.2739, allocations: 112.8 kB / 336.6 MB, free: 10.34 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.2739, allocations: 11.98 kB / 336.6 MB, free: 10.33 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/0.2739, allocations: 34.91 kB / 336.7 MB, free: 10.29 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.332e-06/0.2739, allocations: 0 / 336.7 MB, free: 10.29 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001466/0.2754, allocations: 0.7213 MB / 337.4 MB, free: 9.492 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.457e-05/0.2755, allocations: 55.36 kB / 337.4 MB, free: 9.426 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002955/0.2758, allocations: 308.5 kB / 337.7 MB, free: 9.121 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.2758, allocations: 33.7 kB / 337.8 MB, free: 9.082 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.2759, allocations: 204.2 kB / 338 MB, free: 8.875 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.89e-05/0.276, allocations: 70.92 kB / 338 MB, free: 8.805 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.313e-05/0.276, allocations: 8 kB / 338 MB, free: 8.797 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.2761, allocations: 338.8 kB / 338.4 MB, free: 8.457 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000185/0.2763, allocations: 83.97 kB / 338.5 MB, free: 8.375 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.2766, allocations: 128.2 kB / 338.6 MB, free: 8.234 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002115/0.2768, allocations: 95.86 kB / 338.7 MB, free: 8.141 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2768, allocations: 0 / 338.7 MB, free: 8.141 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007247/0.2775, allocations: 375.5 kB / 339 MB, free: 7.758 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.2776, allocations: 8 kB / 339.1 MB, free: 7.75 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2776, allocations: 0 / 339.1 MB, free: 7.75 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004231/0.278, allocations: 114.5 kB / 339.2 MB, free: 7.629 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.2782, allocations: 35.92 kB / 339.2 MB, free: 7.594 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003538/0.2817, allocations: 4.453 MB / 343.7 MB, free: 2.738 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002474/0.282, allocations: 39.83 kB / 343.7 MB, free: 2.699 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.188e-05/0.282, allocations: 15.89 kB / 343.7 MB, free: 2.684 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.0001824/0.2822, allocations: 145.8 kB / 343.9 MB, free: 2.531 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.911e-05/0.2823, allocations: 31.62 kB / 343.9 MB, free: 2.5 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.047e-05/0.2824, allocations: 39.17 kB / 343.9 MB, free: 2.461 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.2824, allocations: 4 kB / 343.9 MB, free: 2.457 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.2824, allocations: 0 / 343.9 MB, free: 2.457 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.2824, allocations: 3.984 kB / 343.9 MB, free: 2.453 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004932/0.2829, allocations: 381.5 kB / 344.3 MB, free: 2.031 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.2829, allocations: 0 / 344.3 MB, free: 2.031 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.283, allocations: 23.97 kB / 344.3 MB, free: 2.008 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003176/0.2834, allocations: 126.4 kB / 344.4 MB, free: 1.875 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.2834, allocations: 4 kB / 344.5 MB, free: 1.871 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003389/0.2868, allocations: 4.441 MB / 348.9 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2868, allocations: 0 / 348.9 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000636/0.2874, allocations: 410.2 kB / 349.3 MB, free: 12.61 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000165/0.2876, allocations: 132.6 kB / 349.4 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.645e-05/0.2877, allocations: 11.98 kB / 349.4 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002241/0.2879, allocations: 27.98 kB / 349.5 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.368e-05/0.288, allocations: 19.97 kB / 349.5 MB, free: 12.4 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.288, allocations: 4 kB / 349.5 MB, free: 12.39 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000227/0.2883, allocations: 215.1 kB / 349.7 MB, free: 12.18 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2883, allocations: 4 kB / 349.7 MB, free: 12.18 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007156/0.289, allocations: 115.8 kB / 349.8 MB, free: 12.07 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.0001394/0.2891, allocations: 115.1 kB / 349.9 MB, free: 11.94 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009344/0.2901, allocations: 0.5702 MB / 350.5 MB, free: 11.33 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.2901, allocations: 0 / 350.5 MB, free: 11.33 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000535/0.2906, allocations: 491.8 kB / 351 MB, free: 10.81 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005135/0.2912, allocations: 61.58 kB / 351 MB, free: 10.75 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.2926, allocations: 0.7612 MB / 351.8 MB, free: 9.969 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.293, allocations: 0.7912 MB / 352.6 MB, free: 9.148 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001371/0.2931, allocations: 26.97 kB / 352.6 MB, free: 9.121 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.362e-05/0.2932, allocations: 23.44 kB / 352.6 MB, free: 9.098 MB / 286.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2932, allocations: 0 / 352.6 MB, free: 9.098 MB / 286.1 MB Notification: Performance of Templates: time 0.009479/0.3027, allocations: 4.685 MB / 357.3 MB, free: 4.41 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1)