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.0009943/0.0009942, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008308/0.008309, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.711/1.711, allocations: 205.4 MB / 222.4 MB, free: 5.574 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.0004672/0.0004675, allocations: 14.81 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2593, allocations: 47.58 MB / 327 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003116/0.2625, allocations: 3.102 MB / 330.1 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001313/0.2638, allocations: 0.7778 MB / 330.9 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/0.264, allocations: 6.656 kB / 330.9 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001676/0.2642, allocations: 53.02 kB / 331 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002492/0.2644, allocations: 114.2 kB / 331.1 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002643/0.2647, allocations: 89.14 kB / 331.2 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005152/0.2652, allocations: 492.2 kB / 331.6 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002346/0.2655, allocations: 113.1 kB / 331.8 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002283/0.2657, allocations: 170.7 kB / 331.9 MB, free: 13.63 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.2659, allocations: 187.8 kB / 332.1 MB, free: 13.5 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.188e-05/0.266, allocations: 19.88 kB / 332.1 MB, free: 13.5 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.775e-05/0.2661, allocations: 20.94 kB / 332.1 MB, free: 13.5 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.71e-05/0.2661, allocations: 69.56 kB / 332.2 MB, free: 13.45 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002051/0.2663, allocations: 221.6 kB / 332.4 MB, free: 13.29 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004303/0.2668, allocations: 459.9 kB / 332.9 MB, free: 12.95 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.2668, allocations: 4 kB / 332.9 MB, free: 12.95 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2668, allocations: 0 / 332.9 MB, free: 12.95 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.2668, allocations: 0.9375 kB / 332.9 MB, free: 12.95 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.001065/0.2679, allocations: 0.6523 MB / 333.5 MB, free: 12.39 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.2679, allocations: 13.23 kB / 333.5 MB, free: 12.39 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.638e-05/0.268, allocations: 48.12 kB / 333.6 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004025/0.2685, allocations: 303.6 kB / 333.9 MB, free: 12.07 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.751e-05/0.2685, allocations: 26.78 kB / 333.9 MB, free: 12.05 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.229e-05/0.2686, allocations: 32.14 kB / 333.9 MB, free: 12.04 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006659/0.2692, allocations: 371.3 kB / 334.3 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.2693, allocations: 0 / 334.3 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.05e-05/0.2693, allocations: 15.25 kB / 334.3 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.2693, allocations: 8.406 kB / 334.3 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005882/0.2699, allocations: 286.7 kB / 334.6 MB, free: 11.66 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00197/0.2719, allocations: 1.43 MB / 336 MB, free: 10.12 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000441/0.2723, allocations: 226.5 kB / 336.3 MB, free: 9.895 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.2726, allocations: 112.8 kB / 336.4 MB, free: 9.781 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/0.2726, allocations: 7.984 kB / 336.4 MB, free: 9.773 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.2726, allocations: 42.91 kB / 336.4 MB, free: 9.723 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.2727, allocations: 0 / 336.4 MB, free: 9.723 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001551/0.2742, allocations: 0.7174 MB / 337.1 MB, free: 8.934 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.2743, allocations: 59.41 kB / 337.2 MB, free: 8.863 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003156/0.2746, allocations: 304.6 kB / 337.5 MB, free: 8.559 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.2746, allocations: 33.7 kB / 337.5 MB, free: 8.52 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001832/0.2748, allocations: 208.1 kB / 337.7 MB, free: 8.309 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.212e-05/0.2749, allocations: 74.91 kB / 337.8 MB, free: 8.234 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.2749, allocations: 25.72 kB / 337.8 MB, free: 8.203 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.2751, allocations: 338.8 kB / 338.2 MB, free: 7.863 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.2753, allocations: 87.97 kB / 338.2 MB, free: 7.777 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.2755, allocations: 132.2 kB / 338.4 MB, free: 7.633 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003967/0.2759, allocations: 212.1 kB / 338.6 MB, free: 7.41 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.2759, allocations: 4 kB / 338.6 MB, free: 7.406 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007446/0.2767, allocations: 379.4 kB / 339 MB, free: 7.02 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.2767, allocations: 4 kB / 339 MB, free: 7.016 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.2767, allocations: 0 / 339 MB, free: 7.016 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004107/0.2771, allocations: 118.4 kB / 339.1 MB, free: 6.891 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001852/0.2773, allocations: 39.97 kB / 339.1 MB, free: 6.852 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003437/0.2808, allocations: 4.457 MB / 343.6 MB, free: 1.992 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002688/0.2811, allocations: 27.86 kB / 343.6 MB, free: 1.965 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/0.2811, allocations: 7.984 kB / 343.6 MB, free: 1.957 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.0001998/0.2813, allocations: 149.8 kB / 343.8 MB, free: 1.801 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.807e-05/0.2814, allocations: 35.62 kB / 343.8 MB, free: 1.766 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.835e-05/0.2815, allocations: 35.17 kB / 343.8 MB, free: 1.727 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.2815, allocations: 4 kB / 343.8 MB, free: 1.723 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.2815, allocations: 0 / 343.8 MB, free: 1.723 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.2815, allocations: 0 / 343.8 MB, free: 1.723 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004426/0.2819, allocations: 385.1 kB / 344.2 MB, free: 1.297 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2819, allocations: 0 / 344.2 MB, free: 1.297 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.2821, allocations: 27.98 kB / 344.2 MB, free: 1.27 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000316/0.2824, allocations: 114.6 kB / 344.3 MB, free: 1.148 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.2824, allocations: 8 kB / 344.4 MB, free: 1.141 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003218/0.2856, allocations: 4.445 MB / 348.8 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2857, allocations: 0 / 348.8 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006184/0.2863, allocations: 422.2 kB / 349.2 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001314/0.2864, allocations: 128.5 kB / 349.3 MB, free: 11.72 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.2865, allocations: 8 kB / 349.3 MB, free: 11.71 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.2867, allocations: 27.98 kB / 349.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.287e-05/0.2868, allocations: 27.89 kB / 349.4 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.2868, allocations: 8 kB / 349.4 MB, free: 11.65 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002239/0.2871, allocations: 215.1 kB / 349.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2871, allocations: 0 / 349.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000666/0.2877, allocations: 115.8 kB / 349.7 MB, free: 11.32 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.0001362/0.2879, allocations: 107.2 kB / 349.8 MB, free: 11.21 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008866/0.2888, allocations: 0.5785 MB / 350.4 MB, free: 10.59 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2888, allocations: 4.125 kB / 350.4 MB, free: 10.59 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004866/0.2893, allocations: 495.9 kB / 350.9 MB, free: 10.06 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004616/0.2898, allocations: 60.95 kB / 351 MB, free: 10 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.2909, allocations: 0.7946 MB / 351.8 MB, free: 9.188 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.2912, allocations: 0.7951 MB / 352.5 MB, free: 8.363 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001057/0.2914, allocations: 23.02 kB / 352.6 MB, free: 8.34 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.249e-05/0.2914, allocations: 23.42 kB / 352.6 MB, free: 8.32 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2914, allocations: 0 / 352.6 MB, free: 8.32 MB / 286.1 MB Notification: Performance of Templates: time 0.009034/0.3005, allocations: 4.853 MB / 357.4 MB, free: 3.465 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)