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.001162/0.001162, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00122/0.00122, allocations: 189.5 kB / 16.25 MB, free: 6.625 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.875/1.875, allocations: 205.1 MB / 222.1 MB, free: 4.715 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.001467/0.001467, allocations: 47.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3128, allocations: 46.63 MB / 324.8 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004669/0.3175, allocations: 3.477 MB / 328.3 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.3191, allocations: 0.7796 MB / 329.1 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001874/0.3193, allocations: 5.656 kB / 329.1 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001773/0.3195, allocations: 58.72 kB / 329.2 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002448/0.3198, allocations: 113.5 kB / 329.3 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002993/0.3201, allocations: 93.66 kB / 329.4 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005187/0.3206, allocations: 0.501 MB / 329.9 MB, free: 14.01 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002091/0.3208, allocations: 135.7 kB / 330 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002462/0.3211, allocations: 186.6 kB / 330.2 MB, free: 13.83 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002126/0.3213, allocations: 215.7 kB / 330.4 MB, free: 13.68 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.362e-05/0.3214, allocations: 43.94 kB / 330.4 MB, free: 13.67 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.958e-05/0.3214, allocations: 38.97 kB / 330.5 MB, free: 13.67 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.257e-05/0.3215, allocations: 85.66 kB / 330.6 MB, free: 13.6 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000202/0.3217, allocations: 218.1 kB / 330.8 MB, free: 13.45 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005007/0.3222, allocations: 494.9 kB / 331.3 MB, free: 13.09 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.3223, allocations: 0 / 331.3 MB, free: 13.09 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3223, allocations: 5.281 kB / 331.3 MB, free: 13.09 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.3223, allocations: 0 / 331.3 MB, free: 13.09 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.001333/0.3236, allocations: 0.7155 MB / 332 MB, free: 12.47 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.3237, allocations: 9.5 kB / 332 MB, free: 12.47 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.3238, allocations: 43.94 kB / 332 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003934/0.3242, allocations: 311.9 kB / 332.3 MB, free: 12.15 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/0.3242, allocations: 26.16 kB / 332.4 MB, free: 12.14 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.882e-05/0.3243, allocations: 29.12 kB / 332.4 MB, free: 12.13 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006392/0.3249, allocations: 361.5 kB / 332.7 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.325, allocations: 0 / 332.7 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.325, allocations: 11.25 kB / 332.8 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.325, allocations: 8.25 kB / 332.8 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005316/0.3256, allocations: 269.4 kB / 333 MB, free: 11.76 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.3275, allocations: 1.425 MB / 334.4 MB, free: 10.27 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004072/0.3279, allocations: 222.4 kB / 334.7 MB, free: 10.04 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000204/0.3281, allocations: 112.8 kB / 334.8 MB, free: 9.926 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.3282, allocations: 4 kB / 334.8 MB, free: 9.922 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.396e-05/0.3282, allocations: 34.91 kB / 334.8 MB, free: 9.879 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.212e-06/0.3282, allocations: 0 / 334.8 MB, free: 9.879 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001545/0.3298, allocations: 0.7018 MB / 335.5 MB, free: 9.105 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.393e-05/0.3298, allocations: 55.34 kB / 335.6 MB, free: 9.039 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003185/0.3301, allocations: 304.6 kB / 335.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.764e-05/0.3302, allocations: 37.7 kB / 335.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.3303, allocations: 216.1 kB / 336.1 MB, free: 8.473 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.698e-05/0.3304, allocations: 66.92 kB / 336.2 MB, free: 8.406 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.082e-05/0.3305, allocations: 45.7 kB / 336.2 MB, free: 8.355 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.3306, allocations: 342.8 kB / 336.6 MB, free: 8.012 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001768/0.3308, allocations: 83.95 kB / 336.6 MB, free: 7.93 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.331, allocations: 116.2 kB / 336.8 MB, free: 7.801 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000368/0.3314, allocations: 200.1 kB / 337 MB, free: 7.59 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3314, allocations: 8 kB / 337 MB, free: 7.582 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006986/0.3321, allocations: 351.6 kB / 337.3 MB, free: 7.223 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3321, allocations: 7.938 kB / 337.3 MB, free: 7.215 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.3322, allocations: 7.984 kB / 337.3 MB, free: 7.207 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004088/0.3326, allocations: 118.6 kB / 337.4 MB, free: 7.082 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001674/0.3328, allocations: 23.98 kB / 337.5 MB, free: 7.059 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003982/0.3367, allocations: 4.99 MB / 342.4 MB, free: 1.656 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.337, allocations: 27.73 kB / 342.5 MB, free: 1.629 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.3371, allocations: 4 kB / 342.5 MB, free: 1.625 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.0001978/0.3373, allocations: 149.8 kB / 342.6 MB, free: 1.469 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.3374, allocations: 39.56 kB / 342.7 MB, free: 1.43 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.419e-05/0.3375, allocations: 35.17 kB / 342.7 MB, free: 1.391 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3375, allocations: 4 kB / 342.7 MB, free: 1.387 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3375, allocations: 4.062 kB / 342.7 MB, free: 1.383 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.3375, allocations: 0 / 342.7 MB, free: 1.383 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004416/0.3379, allocations: 385.2 kB / 343.1 MB, free: 0.957 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3379, allocations: 0 / 343.1 MB, free: 0.957 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.3381, allocations: 19.98 kB / 343.1 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003132/0.3384, allocations: 114.4 kB / 343.2 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.114e-05/0.3384, allocations: 15.98 kB / 343.2 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003825/0.3422, allocations: 4.951 MB / 348.2 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3423, allocations: 0 / 348.2 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006078/0.3429, allocations: 410.3 kB / 348.6 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.343, allocations: 136.6 kB / 348.7 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.3431, allocations: 0 / 348.7 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.3433, allocations: 19.98 kB / 348.7 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.3434, allocations: 35.95 kB / 348.8 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.3434, allocations: 7.938 kB / 348.8 MB, free: 10.8 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002232/0.3437, allocations: 219.1 kB / 349 MB, free: 10.59 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3437, allocations: 0 / 349 MB, free: 10.59 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007011/0.3444, allocations: 111.7 kB / 349.1 MB, free: 10.48 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.000145/0.3445, allocations: 107.2 kB / 349.2 MB, free: 10.36 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009889/0.3455, allocations: 0.5705 MB / 349.8 MB, free: 9.75 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.3455, allocations: 384 / 349.8 MB, free: 9.75 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005107/0.3461, allocations: 491.8 kB / 350.3 MB, free: 9.23 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005124/0.3466, allocations: 61.12 kB / 350.3 MB, free: 9.164 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.3479, allocations: 0.7632 MB / 351.1 MB, free: 8.379 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003709/0.3483, allocations: 0.7914 MB / 351.9 MB, free: 7.559 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.3484, allocations: 30.91 kB / 351.9 MB, free: 7.527 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.982e-05/0.3485, allocations: 23.42 kB / 351.9 MB, free: 7.508 MB / 286.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3485, allocations: 0 / 351.9 MB, free: 7.508 MB / 286.1 MB Notification: Performance of Templates: time 0.009642/0.3581, allocations: 5.236 MB / 357.2 MB, free: 2.27 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)