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.001497/0.001497, allocations: 114 kB / 17.06 MB, free: 5.996 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.0015/0.0015, allocations: 200 kB / 18 MB, free: 5.078 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.56/1.56, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.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.001571/0.001571, allocations: 51.94 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.114, allocations: 46.61 MB / 374.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005538/0.1196, allocations: 3.442 MB / 377.9 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001873/0.1215, allocations: 0.8069 MB / 378.7 MB, free: 300 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004763/0.1221, allocations: 11.94 kB / 378.7 MB, free: 288 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003367/0.1224, allocations: 59.36 kB / 378.8 MB, free: 228 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005193/0.1229, allocations: 130.8 kB / 378.9 MB, free: 96 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2625/0.3855, allocations: 110.2 kB / 379 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001148/0.3867, allocations: 0.4993 MB / 379.5 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003945/0.3871, allocations: 140.7 kB / 379.7 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005438/0.3877, allocations: 190.9 kB / 379.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000503/0.3882, allocations: 207.8 kB / 380.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001367/0.3883, allocations: 39.88 kB / 380.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001616/0.3885, allocations: 39.88 kB / 380.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.3886, allocations: 91.03 kB / 380.2 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003466/0.389, allocations: 220.8 kB / 380.4 MB, free: 9.617 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007799/0.3897, allocations: 495.1 kB / 380.9 MB, free: 9.547 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.3898, allocations: 0 / 380.9 MB, free: 9.547 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3898, allocations: 0 / 380.9 MB, free: 9.547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.3898, allocations: 3.312 kB / 380.9 MB, free: 9.547 MB / 318.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.001702/0.3915, allocations: 0.7142 MB / 381.6 MB, free: 9.051 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.994e-05/0.3916, allocations: 10.09 kB / 381.6 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.3917, allocations: 48.31 kB / 381.7 MB, free: 9.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005145/0.3922, allocations: 318.3 kB / 382 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.772e-05/0.3923, allocations: 23 kB / 382 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.307e-05/0.3923, allocations: 34.22 kB / 382.1 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00078/0.3931, allocations: 354.5 kB / 382.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.3932, allocations: 8.266 kB / 382.4 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.378e-05/0.3932, allocations: 17.88 kB / 382.4 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.3932, allocations: 7.125 kB / 382.4 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007494/0.394, allocations: 268.7 kB / 382.7 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002439/0.3964, allocations: 1.411 MB / 384.1 MB, free: 7.926 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005042/0.397, allocations: 220.4 kB / 384.3 MB, free: 7.898 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002424/0.3972, allocations: 110.7 kB / 384.4 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.802e-05/0.3973, allocations: 5.156 kB / 384.4 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/0.3973, allocations: 39.66 kB / 384.5 MB, free: 7.812 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.114e-06/0.3973, allocations: 0 / 384.5 MB, free: 7.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001577/0.3989, allocations: 0.6944 MB / 385.2 MB, free: 7.348 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.399, allocations: 54.75 kB / 385.2 MB, free: 7.285 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003594/0.3993, allocations: 309 kB / 385.5 MB, free: 7.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.3993, allocations: 34.14 kB / 385.6 MB, free: 7.082 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.3995, allocations: 207.8 kB / 385.8 MB, free: 6.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.769e-05/0.3995, allocations: 80.3 kB / 385.8 MB, free: 6.852 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.592e-05/0.3996, allocations: 50.44 kB / 385.9 MB, free: 6.816 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.872e-05/0.3997, allocations: 343.6 kB / 386.2 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.3999, allocations: 76.34 kB / 386.3 MB, free: 6.465 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002284/0.4002, allocations: 125.1 kB / 386.4 MB, free: 6.391 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003794/0.4005, allocations: 199 kB / 386.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.4006, allocations: 1 kB / 386.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000753/0.4013, allocations: 351.3 kB / 387 MB, free: 6.133 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.4014, allocations: 5.219 kB / 387 MB, free: 6.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.4014, allocations: 4.594 kB / 387 MB, free: 6.133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005077/0.4019, allocations: 122.2 kB / 387.1 MB, free: 6.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001854/0.4021, allocations: 27.12 kB / 387.1 MB, free: 6.078 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003155/0.4052, allocations: 4.976 MB / 392.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002987/0.4056, allocations: 26.98 kB / 392.1 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.4056, allocations: 7.156 kB / 392.1 MB, free: 1.227 MB / 318.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.0002151/0.4058, allocations: 150.2 kB / 392.3 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.796e-05/0.4059, allocations: 35.88 kB / 392.3 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.834e-05/0.406, allocations: 39.45 kB / 392.4 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.406, allocations: 3.094 kB / 392.4 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.406, allocations: 4.812 kB / 392.4 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.406, allocations: 2.016 kB / 392.4 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004756/0.4065, allocations: 378 kB / 392.7 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.4065, allocations: 3.938 kB / 392.7 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.4066, allocations: 24.34 kB / 392.8 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003621/0.407, allocations: 121.5 kB / 392.9 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.034e-05/0.407, allocations: 5.766 kB / 392.9 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004609/0.4116, allocations: 4.971 MB / 397.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4117, allocations: 0 / 397.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008633/0.4125, allocations: 400.1 kB / 398.2 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002218/0.4128, allocations: 129.6 kB / 398.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.739e-05/0.4128, allocations: 5.656 kB / 398.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000237/0.4131, allocations: 17.28 kB / 398.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.4132, allocations: 31.05 kB / 398.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.4132, allocations: 4.562 kB / 398.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003442/0.4136, allocations: 222.5 kB / 398.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4136, allocations: 4 kB / 398.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008604/0.4145, allocations: 114.3 kB / 398.8 MB, free: 11.34 MB / 334.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.0001899/0.4147, allocations: 107.6 kB / 398.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001245/0.4159, allocations: 0.5776 MB / 399.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.4159, allocations: 1.656 kB / 399.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007108/0.4167, allocations: 470.6 kB / 399.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005296/0.4172, allocations: 63.38 kB / 400 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00149/0.4187, allocations: 0.6307 MB / 400.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000418/0.4191, allocations: 0.7929 MB / 401.4 MB, free: 9.328 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001263/0.4193, allocations: 27.55 kB / 401.4 MB, free: 9.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.42e-05/0.4193, allocations: 23.62 kB / 401.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4193, allocations: 1.438 kB / 401.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of Templates: time 0.01388/0.4332, allocations: 5.623 MB / 407.1 MB, free: 8.02 MB / 334.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)