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.001839/0.001839, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001635/0.001636, allocations: 195.9 kB / 16.14 MB, free: 6.672 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.634/1.634, allocations: 205.1 MB / 222 MB, free: 4.961 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.00115/0.00115, allocations: 55.94 kB / 278 MB, free: 12.99 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2942, allocations: 46.62 MB / 324.7 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004656/0.2989, allocations: 3.481 MB / 328.2 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001501/0.3004, allocations: 0.7875 MB / 328.9 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001881/0.3006, allocations: 5.688 kB / 328.9 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.3008, allocations: 49.3 kB / 329 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002387/0.3011, allocations: 119 kB / 329.1 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002799/0.3014, allocations: 92.7 kB / 329.2 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005529/0.3019, allocations: 488.3 kB / 329.7 MB, free: 13.92 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002417/0.3022, allocations: 116.5 kB / 329.8 MB, free: 13.84 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002542/0.3024, allocations: 174 kB / 330 MB, free: 13.75 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002498/0.3027, allocations: 200.4 kB / 330.2 MB, free: 13.61 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.945e-05/0.3028, allocations: 25.22 kB / 330.2 MB, free: 13.61 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.621e-05/0.3029, allocations: 24.78 kB / 330.2 MB, free: 13.61 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.207e-05/0.3029, allocations: 77.61 kB / 330.3 MB, free: 13.55 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002414/0.3032, allocations: 204.9 kB / 330.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004745/0.3037, allocations: 471.7 kB / 330.9 MB, free: 13.07 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3037, allocations: 0 / 330.9 MB, free: 13.07 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.61e-07/0.3037, allocations: 4 kB / 330.9 MB, free: 13.06 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.3037, allocations: 0 / 330.9 MB, free: 13.06 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.001275/0.305, allocations: 0.7166 MB / 331.7 MB, free: 12.45 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.3051, allocations: 9.219 kB / 331.7 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.3052, allocations: 48.44 kB / 331.7 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004486/0.3056, allocations: 307.2 kB / 332 MB, free: 12.13 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.549e-05/0.3057, allocations: 21.94 kB / 332 MB, free: 12.12 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.692e-05/0.3057, allocations: 32.81 kB / 332.1 MB, free: 12.11 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007115/0.3065, allocations: 357.9 kB / 332.4 MB, free: 11.88 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.3065, allocations: 3.984 kB / 332.4 MB, free: 11.88 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.15e-05/0.3065, allocations: 16.41 kB / 332.4 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.594e-05/0.3066, allocations: 11.03 kB / 332.5 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006186/0.3072, allocations: 261.4 kB / 332.7 MB, free: 11.74 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.3092, allocations: 1.425 MB / 334.1 MB, free: 10.5 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004328/0.3097, allocations: 222.4 kB / 334.4 MB, free: 10.28 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002037/0.3099, allocations: 108.8 kB / 334.5 MB, free: 10.17 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.434e-05/0.3099, allocations: 4 kB / 334.5 MB, free: 10.16 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.31, allocations: 34.97 kB / 334.5 MB, free: 10.12 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.292e-06/0.31, allocations: 0 / 334.5 MB, free: 10.12 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001464/0.3114, allocations: 0.7017 MB / 335.2 MB, free: 9.348 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.3115, allocations: 51.41 kB / 335.2 MB, free: 9.285 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002876/0.3118, allocations: 304.6 kB / 335.5 MB, free: 8.98 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.3118, allocations: 33.7 kB / 335.6 MB, free: 8.941 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.312, allocations: 220.1 kB / 335.8 MB, free: 8.719 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.292e-05/0.312, allocations: 70.91 kB / 335.9 MB, free: 8.648 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.817e-05/0.3121, allocations: 45.7 kB / 335.9 MB, free: 8.598 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.3122, allocations: 342.8 kB / 336.2 MB, free: 8.254 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001878/0.3124, allocations: 79.95 kB / 336.3 MB, free: 8.176 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.3126, allocations: 128.2 kB / 336.4 MB, free: 8.035 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003566/0.313, allocations: 200.1 kB / 336.6 MB, free: 7.824 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.313, allocations: 0 / 336.6 MB, free: 7.824 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000687/0.3137, allocations: 359.4 kB / 337 MB, free: 7.457 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.3137, allocations: 4 kB / 337 MB, free: 7.453 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.3137, allocations: 4 kB / 337 MB, free: 7.449 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000421/0.3142, allocations: 122.6 kB / 337.1 MB, free: 7.32 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.3144, allocations: 31.97 kB / 337.1 MB, free: 7.289 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00329/0.3177, allocations: 4.453 MB / 341.6 MB, free: 2.434 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002136/0.3179, allocations: 31.77 kB / 341.6 MB, free: 2.402 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.928e-05/0.3179, allocations: 8.062 kB / 341.6 MB, free: 2.395 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.0001612/0.3181, allocations: 150.3 kB / 341.8 MB, free: 2.238 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.865e-05/0.3182, allocations: 31.62 kB / 341.8 MB, free: 2.207 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.888e-05/0.3182, allocations: 39.17 kB / 341.9 MB, free: 2.164 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.3182, allocations: 7.984 kB / 341.9 MB, free: 2.156 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.3182, allocations: 0 / 341.9 MB, free: 2.156 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3182, allocations: 0 / 341.9 MB, free: 2.156 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000385/0.3186, allocations: 377.3 kB / 342.2 MB, free: 1.738 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3186, allocations: 7.984 kB / 342.2 MB, free: 1.73 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.3188, allocations: 20.08 kB / 342.3 MB, free: 1.711 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003138/0.3191, allocations: 122.5 kB / 342.4 MB, free: 1.582 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.3191, allocations: 8 kB / 342.4 MB, free: 1.574 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003191/0.3223, allocations: 4.437 MB / 346.8 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.3223, allocations: 0 / 346.8 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005705/0.3229, allocations: 406.2 kB / 347.2 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.323, allocations: 128.7 kB / 347.3 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.3231, allocations: 8 kB / 347.4 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002177/0.3233, allocations: 19.98 kB / 347.4 MB, free: 12.15 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.444e-05/0.3234, allocations: 19.97 kB / 347.4 MB, free: 12.13 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.3234, allocations: 7.984 kB / 347.4 MB, free: 12.12 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000184/0.3236, allocations: 215.1 kB / 347.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3236, allocations: 4 kB / 347.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006227/0.3242, allocations: 115.8 kB / 347.7 MB, free: 11.79 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.0001299/0.3244, allocations: 111.2 kB / 347.8 MB, free: 11.67 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008258/0.3252, allocations: 0.5707 MB / 348.4 MB, free: 11.06 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3252, allocations: 192 / 348.4 MB, free: 11.06 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000482/0.3257, allocations: 479.7 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.0005105/0.3262, allocations: 65.06 kB / 348.9 MB, free: 10.49 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.3274, allocations: 0.7583 MB / 349.7 MB, free: 9.707 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.3277, allocations: 0.7951 MB / 350.5 MB, free: 8.883 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001115/0.3278, allocations: 26.97 kB / 350.5 MB, free: 8.855 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.075e-05/0.3279, allocations: 19.44 kB / 350.5 MB, free: 8.84 MB / 286.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3279, allocations: 0 / 350.5 MB, free: 8.84 MB / 286.1 MB Notification: Performance of Templates: time 0.008489/0.3364, allocations: 4.919 MB / 355.5 MB, free: 3.922 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)