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.001606/0.001605, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001435/0.001435, allocations: 196.7 kB / 16.14 MB, free: 6.715 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.623/1.623, allocations: 205.1 MB / 222 MB, free: 5.004 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.001241/0.001241, allocations: 51.94 kB / 278 MB, free: 13.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2903, allocations: 46.63 MB / 324.7 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004727/0.2951, allocations: 3.478 MB / 328.2 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.2967, allocations: 0.7868 MB / 328.9 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002326/0.2969, allocations: 5.75 kB / 328.9 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002473/0.2972, allocations: 45.92 kB / 329 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002622/0.2975, allocations: 117.9 kB / 329.1 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003691/0.2979, allocations: 93.22 kB / 329.2 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006364/0.2985, allocations: 487.8 kB / 329.7 MB, free: 13.92 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003024/0.2988, allocations: 112.2 kB / 329.8 MB, free: 13.85 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002969/0.2991, allocations: 181.9 kB / 330 MB, free: 13.75 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002785/0.2994, allocations: 192.3 kB / 330.2 MB, free: 13.62 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.278e-05/0.2995, allocations: 25.06 kB / 330.2 MB, free: 13.62 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.291e-05/0.2996, allocations: 24.38 kB / 330.2 MB, free: 13.62 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.95e-05/0.2996, allocations: 78.66 kB / 330.3 MB, free: 13.55 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002365/0.2999, allocations: 208.7 kB / 330.5 MB, free: 13.42 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005723/0.3005, allocations: 471.2 kB / 330.9 MB, free: 13.07 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.3005, allocations: 4 kB / 330.9 MB, free: 13.07 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3005, allocations: 1.188 kB / 330.9 MB, free: 13.07 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.859e-06/0.3005, allocations: 0 / 330.9 MB, free: 13.07 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.001469/0.302, allocations: 0.7157 MB / 331.7 MB, free: 12.46 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.256e-05/0.3021, allocations: 9.594 kB / 331.7 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.3022, allocations: 48.44 kB / 331.7 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004744/0.3027, allocations: 316 kB / 332 MB, free: 12.12 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.653e-05/0.3027, allocations: 21.72 kB / 332 MB, free: 12.12 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.623e-05/0.3028, allocations: 33.44 kB / 332.1 MB, free: 12.11 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007588/0.3036, allocations: 360.3 kB / 332.4 MB, free: 11.87 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.3036, allocations: 1.469 kB / 332.4 MB, free: 11.87 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.96e-05/0.3036, allocations: 14.62 kB / 332.4 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.675e-05/0.3037, allocations: 8.656 kB / 332.5 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006489/0.3043, allocations: 268.7 kB / 332.7 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002337/0.3067, allocations: 1.421 MB / 334.1 MB, free: 10.49 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004616/0.3071, allocations: 218.5 kB / 334.4 MB, free: 10.27 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002275/0.3074, allocations: 108.8 kB / 334.5 MB, free: 10.16 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.88e-05/0.3074, allocations: 3.984 kB / 334.5 MB, free: 10.16 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.3075, allocations: 42.91 kB / 334.5 MB, free: 10.11 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.3075, allocations: 0 / 334.5 MB, free: 10.11 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001613/0.3091, allocations: 0.6979 MB / 335.2 MB, free: 9.336 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/0.3091, allocations: 55.41 kB / 335.3 MB, free: 9.27 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003184/0.3095, allocations: 304.5 kB / 335.6 MB, free: 8.965 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.5e-05/0.3095, allocations: 37.7 kB / 335.6 MB, free: 8.922 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.3097, allocations: 208.1 kB / 335.8 MB, free: 8.711 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.605e-05/0.3097, allocations: 74.92 kB / 335.9 MB, free: 8.637 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.124e-05/0.3098, allocations: 49.69 kB / 335.9 MB, free: 8.582 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.31, allocations: 338.8 kB / 336.2 MB, free: 8.242 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001845/0.3102, allocations: 75.95 kB / 336.3 MB, free: 8.168 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.3104, allocations: 128.2 kB / 336.4 MB, free: 8.027 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003628/0.3107, allocations: 196.1 kB / 336.6 MB, free: 7.82 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3107, allocations: 0 / 336.6 MB, free: 7.82 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006886/0.3114, allocations: 367.6 kB / 337 MB, free: 7.445 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.3115, allocations: 7.984 kB / 337 MB, free: 7.438 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.3115, allocations: 4 kB / 337 MB, free: 7.434 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004349/0.3119, allocations: 114.5 kB / 337.1 MB, free: 7.312 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.3121, allocations: 31.98 kB / 337.2 MB, free: 7.281 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004086/0.3162, allocations: 4.457 MB / 341.6 MB, free: 2.422 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000322/0.3166, allocations: 31.89 kB / 341.6 MB, free: 2.391 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.3166, allocations: 8 kB / 341.6 MB, free: 2.383 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.0002392/0.3168, allocations: 145.8 kB / 341.8 MB, free: 2.23 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.365e-05/0.3169, allocations: 35.62 kB / 341.8 MB, free: 2.195 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.319e-05/0.317, allocations: 35.17 kB / 341.9 MB, free: 2.156 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.79e-06/0.317, allocations: 4 kB / 341.9 MB, free: 2.152 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.317, allocations: 3.938 kB / 341.9 MB, free: 2.148 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.317, allocations: 4 kB / 341.9 MB, free: 2.145 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004676/0.3175, allocations: 381.3 kB / 342.2 MB, free: 1.723 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.3175, allocations: 0 / 342.2 MB, free: 1.723 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.3176, allocations: 19.98 kB / 342.3 MB, free: 1.703 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003429/0.318, allocations: 110.5 kB / 342.4 MB, free: 1.586 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.318, allocations: 7.984 kB / 342.4 MB, free: 1.578 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003667/0.3217, allocations: 4.445 MB / 346.8 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.3217, allocations: 0 / 346.8 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006426/0.3224, allocations: 406.4 kB / 347.2 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001314/0.3225, allocations: 124.6 kB / 347.3 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.386e-05/0.3225, allocations: 8 kB / 347.4 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.3228, allocations: 23.92 kB / 347.4 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.3229, allocations: 23.95 kB / 347.4 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.3229, allocations: 7.938 kB / 347.4 MB, free: 12.11 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002863/0.3232, allocations: 223.1 kB / 347.6 MB, free: 11.89 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3232, allocations: 0 / 347.6 MB, free: 11.89 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.00076/0.324, allocations: 115.8 kB / 347.7 MB, free: 11.78 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.0001619/0.3241, allocations: 103.2 kB / 347.8 MB, free: 11.67 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009815/0.3251, allocations: 0.5662 MB / 348.4 MB, free: 11.06 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.3252, allocations: 4 kB / 348.4 MB, free: 11.06 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005284/0.3257, allocations: 484.4 kB / 348.9 MB, free: 10.55 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005666/0.3263, allocations: 65 kB / 348.9 MB, free: 10.48 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.3276, allocations: 0.7661 MB / 349.7 MB, free: 9.691 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003881/0.328, allocations: 0.7912 MB / 350.5 MB, free: 8.871 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001126/0.3281, allocations: 22.98 kB / 350.5 MB, free: 8.848 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.516e-05/0.3281, allocations: 27.36 kB / 350.5 MB, free: 8.824 MB / 286.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3282, allocations: 0 / 350.5 MB, free: 8.824 MB / 286.1 MB Notification: Performance of Templates: time 0.009788/0.3379, allocations: 4.908 MB / 355.5 MB, free: 3.918 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (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)