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.001306/0.001306, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001682/0.001683, allocations: 198.7 kB / 16.54 MB, free: 6.664 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.675/1.675, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.001319/0.00132, allocations: 51.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.3009, allocations: 46.63 MB / 325.3 MB, free: 1.824 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004892/0.3059, allocations: 3.45 MB / 328.8 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.3074, allocations: 0.7871 MB / 329.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001821/0.3076, allocations: 5.75 kB / 329.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002121/0.3079, allocations: 68.92 kB / 329.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002334/0.3081, allocations: 134.6 kB / 329.7 MB, free: 14.24 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003162/0.3084, allocations: 104.6 kB / 329.9 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005862/0.309, allocations: 0.4983 MB / 330.3 MB, free: 13.85 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002934/0.3093, allocations: 131.4 kB / 330.5 MB, free: 13.78 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002661/0.3096, allocations: 190.5 kB / 330.7 MB, free: 13.67 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002654/0.3099, allocations: 208.3 kB / 330.9 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.693e-05/0.31, allocations: 39.31 kB / 330.9 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.909e-05/0.31, allocations: 38.94 kB / 330.9 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.397e-05/0.3101, allocations: 95.23 kB / 331 MB, free: 13.44 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002445/0.3104, allocations: 220.5 kB / 331.3 MB, free: 13.29 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005324/0.3109, allocations: 494.8 kB / 331.7 MB, free: 12.93 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.311, allocations: 1 kB / 331.7 MB, free: 12.93 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.311, allocations: 0 / 331.7 MB, free: 12.93 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.311, allocations: 0 / 331.7 MB, free: 12.93 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.001192/0.3122, allocations: 0.7203 MB / 332.5 MB, free: 12.31 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.3122, allocations: 10.09 kB / 332.5 MB, free: 12.31 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.592e-05/0.3123, allocations: 43.31 kB / 332.5 MB, free: 12.29 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000408/0.3127, allocations: 315.8 kB / 332.8 MB, free: 11.98 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.048e-05/0.3128, allocations: 25.69 kB / 332.8 MB, free: 11.97 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.878e-05/0.3129, allocations: 33.38 kB / 332.9 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006348/0.3135, allocations: 358.1 kB / 333.2 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.3135, allocations: 3.938 kB / 333.2 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.722e-05/0.3136, allocations: 15.38 kB / 333.2 MB, free: 11.71 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.3136, allocations: 8.281 kB / 333.3 MB, free: 11.71 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005799/0.3142, allocations: 268.3 kB / 333.5 MB, free: 11.57 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002032/0.3162, allocations: 1.418 MB / 334.9 MB, free: 10.05 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004136/0.3166, allocations: 222.4 kB / 335.1 MB, free: 9.824 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002267/0.3169, allocations: 112.8 kB / 335.3 MB, free: 9.711 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.3169, allocations: 0 / 335.3 MB, free: 9.711 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.3169, allocations: 46.91 kB / 335.3 MB, free: 9.656 MB / 270.1 MB Notification: Performance of pre-optimization done (n=24): time 1.082e-06/0.3169, allocations: 0 / 335.3 MB, free: 9.656 MB / 270.1 MB Notification: Performance of matching and sorting (n=24): time 0.001503/0.3185, allocations: 0.6978 MB / 336 MB, free: 8.887 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.3185, allocations: 59.41 kB / 336.1 MB, free: 8.816 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003169/0.3188, allocations: 304.6 kB / 336.4 MB, free: 8.516 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.3189, allocations: 25.7 kB / 336.4 MB, free: 8.484 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.319, allocations: 212.1 kB / 336.6 MB, free: 8.27 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.234e-05/0.3191, allocations: 82.89 kB / 336.7 MB, free: 8.188 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.166e-05/0.3192, allocations: 49.7 kB / 336.7 MB, free: 8.133 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.3193, allocations: 342.8 kB / 337.1 MB, free: 7.789 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001878/0.3195, allocations: 75.97 kB / 337.1 MB, free: 7.715 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/0.3198, allocations: 124.2 kB / 337.2 MB, free: 7.578 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003722/0.3201, allocations: 204.1 kB / 337.4 MB, free: 7.363 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3201, allocations: 0 / 337.4 MB, free: 7.363 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006998/0.3209, allocations: 355.5 kB / 337.8 MB, free: 7 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.3209, allocations: 4.062 kB / 337.8 MB, free: 6.996 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.3209, allocations: 4 kB / 337.8 MB, free: 6.992 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004189/0.3213, allocations: 114.5 kB / 337.9 MB, free: 6.871 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.3215, allocations: 35.91 kB / 338 MB, free: 6.836 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003831/0.3253, allocations: 4.974 MB / 342.9 MB, free: 1.449 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002117/0.3256, allocations: 23.78 kB / 342.9 MB, free: 1.426 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.901e-05/0.3256, allocations: 8 kB / 343 MB, free: 1.418 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.0001628/0.3258, allocations: 149.8 kB / 343.1 MB, free: 1.262 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.097e-05/0.3258, allocations: 35.56 kB / 343.1 MB, free: 1.227 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.971e-05/0.3259, allocations: 43.23 kB / 343.2 MB, free: 1.18 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3259, allocations: 4 kB / 343.2 MB, free: 1.176 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.3259, allocations: 0 / 343.2 MB, free: 1.176 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.3259, allocations: 0 / 343.2 MB, free: 1.176 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000396/0.3263, allocations: 381.2 kB / 343.6 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3263, allocations: 0 / 343.6 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/0.3265, allocations: 19.98 kB / 343.6 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002934/0.3268, allocations: 118.4 kB / 343.7 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.3268, allocations: 4.281 kB / 343.7 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003459/0.3303, allocations: 4.963 MB / 348.7 MB, free: 11.23 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3303, allocations: 0 / 348.7 MB, free: 11.23 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005731/0.3308, allocations: 418.2 kB / 349.1 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.331, allocations: 128.6 kB / 349.2 MB, free: 10.65 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.836e-05/0.331, allocations: 4 kB / 349.2 MB, free: 10.65 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/0.3313, allocations: 23.98 kB / 349.2 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.438e-05/0.3313, allocations: 23.97 kB / 349.2 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.957e-05/0.3314, allocations: 19.86 kB / 349.3 MB, free: 10.58 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001979/0.3316, allocations: 211.1 kB / 349.5 MB, free: 10.38 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3316, allocations: 4 kB / 349.5 MB, free: 10.38 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006257/0.3322, allocations: 115.7 kB / 349.6 MB, free: 10.26 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.0001321/0.3324, allocations: 111.2 kB / 349.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009221/0.3333, allocations: 0.5701 MB / 350.3 MB, free: 9.531 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3333, allocations: 0 / 350.3 MB, free: 9.531 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004813/0.3338, allocations: 483.9 kB / 350.7 MB, free: 9.02 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004844/0.3343, allocations: 53.69 kB / 350.8 MB, free: 8.961 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.3354, allocations: 0.6267 MB / 351.4 MB, free: 8.312 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.3357, allocations: 0.7992 MB / 352.2 MB, free: 7.488 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001004/0.3358, allocations: 26.91 kB / 352.2 MB, free: 7.461 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.859e-05/0.3359, allocations: 27.44 kB / 352.3 MB, free: 7.438 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3359, allocations: 0 / 352.3 MB, free: 7.438 MB / 286.1 MB Notification: Performance of Templates: time 0.009359/0.3453, allocations: 5.356 MB / 357.6 MB, free: 2.078 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)