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.001089/0.001089, allocations: 96.55 kB / 16.3 MB, free: 6.461 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.001064/0.001064, allocations: 173 kB / 17.19 MB, free: 6.348 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.463/1.463, allocations: 205.4 MB / 223.4 MB, free: 13.18 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.0004846/0.0004847, allocations: 11.44 kB / 280.1 MB, free: 3.758 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1019, allocations: 47.58 MB / 327.7 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.002891/0.1048, allocations: 2.767 MB / 330.5 MB, free: 1.32 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009641/0.1058, allocations: 0.7808 MB / 331.2 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.1059, allocations: 4 kB / 331.2 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 7.868e-05/0.106, allocations: 55.59 kB / 331.3 MB, free: 484 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002396/0.1062, allocations: 159.5 kB / 331.5 MB, free: 324 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001976/0.1064, allocations: 79.91 kB / 331.5 MB, free: 244 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000362/0.1068, allocations: 343.2 kB / 331.9 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001871/0.107, allocations: 110.5 kB / 332 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001784/0.1072, allocations: 167.3 kB / 332.1 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001937/0.1074, allocations: 179.2 kB / 332.3 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.693e-05/0.1074, allocations: 20 kB / 332.3 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.914e-05/0.1075, allocations: 20 kB / 332.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.607e-05/0.1076, allocations: 71.73 kB / 332.4 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.814e-05/0.1076, allocations: 101.5 kB / 332.5 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002716/0.1079, allocations: 347 kB / 332.9 MB, free: 14.89 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.1079, allocations: 0 / 332.9 MB, free: 14.89 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1079, allocations: 0 / 332.9 MB, free: 14.89 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1079, allocations: 0 / 332.9 MB, free: 14.89 MB / 286.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.0009218/0.1089, allocations: 0.6583 MB / 333.5 MB, free: 14.19 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.1089, allocations: 12.03 kB / 333.5 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.001e-05/0.109, allocations: 47.44 kB / 333.6 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003266/0.1093, allocations: 298.2 kB / 333.9 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.1094, allocations: 28.59 kB / 333.9 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.916e-05/0.1094, allocations: 36 kB / 333.9 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005507/0.11, allocations: 354.7 kB / 334.3 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.11, allocations: 0 / 334.3 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.322e-05/0.11, allocations: 16 kB / 334.3 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.11, allocations: 8 kB / 334.3 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004917/0.1105, allocations: 282.4 kB / 334.6 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/0.1123, allocations: 1.434 MB / 336 MB, free: 11.53 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000399/0.1127, allocations: 222.5 kB / 336.2 MB, free: 11.3 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.1127, allocations: 4 kB / 336.2 MB, free: 11.3 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.1128, allocations: 34.56 kB / 336.3 MB, free: 11.26 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.262e-06/0.1128, allocations: 4 kB / 336.3 MB, free: 11.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.00141/0.1142, allocations: 0.7107 MB / 337 MB, free: 10.47 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.1142, allocations: 63.22 kB / 337 MB, free: 10.4 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002884/0.1145, allocations: 300.6 kB / 337.3 MB, free: 10.1 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.499e-05/0.1146, allocations: 37.64 kB / 337.4 MB, free: 10.06 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.1147, allocations: 212.1 kB / 337.6 MB, free: 9.844 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.373e-05/0.1148, allocations: 71 kB / 337.7 MB, free: 9.773 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.22e-05/0.1148, allocations: 8 kB / 337.7 MB, free: 9.766 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.115, allocations: 346.8 kB / 338 MB, free: 9.418 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001807/0.1152, allocations: 79.97 kB / 338.1 MB, free: 9.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002004/0.1154, allocations: 128.2 kB / 338.2 MB, free: 9.199 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001964/0.1156, allocations: 87.92 kB / 338.3 MB, free: 9.113 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1156, allocations: 0 / 338.3 MB, free: 9.113 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007264/0.1163, allocations: 379.4 kB / 338.7 MB, free: 8.727 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.603e-05/0.1164, allocations: 8 kB / 338.7 MB, free: 8.719 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1164, allocations: 4.062 kB / 338.7 MB, free: 8.715 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003689/0.1168, allocations: 114.5 kB / 338.8 MB, free: 8.594 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.1169, allocations: 31.92 kB / 338.8 MB, free: 8.562 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0033/0.1202, allocations: 4.488 MB / 343.3 MB, free: 3.672 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002068/0.1205, allocations: 23.83 kB / 343.3 MB, free: 3.648 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.1205, allocations: 8 kB / 343.3 MB, free: 3.641 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001719/0.1207, allocations: 153.8 kB / 343.5 MB, free: 3.48 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.502e-05/0.1207, allocations: 31.62 kB / 343.5 MB, free: 3.449 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.861e-05/0.1208, allocations: 39.17 kB / 343.6 MB, free: 3.41 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.1208, allocations: 4 kB / 343.6 MB, free: 3.406 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.1208, allocations: 0 / 343.6 MB, free: 3.406 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1208, allocations: 3.938 kB / 343.6 MB, free: 3.402 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004021/0.1212, allocations: 381.2 kB / 343.9 MB, free: 2.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1212, allocations: 0 / 343.9 MB, free: 2.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.1214, allocations: 19.98 kB / 344 MB, free: 2.961 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002955/0.1217, allocations: 118.5 kB / 344.1 MB, free: 2.836 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.1217, allocations: 7.984 kB / 344.1 MB, free: 2.828 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003138/0.1248, allocations: 4.469 MB / 348.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1248, allocations: 0 / 348.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005555/0.1254, allocations: 417.6 kB / 349 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.1255, allocations: 133 kB / 349.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.671e-05/0.1256, allocations: 8 kB / 349.1 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002238/0.1258, allocations: 23.98 kB / 349.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.022e-05/0.1259, allocations: 27.95 kB / 349.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.1259, allocations: 7.984 kB / 349.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000196/0.1261, allocations: 223 kB / 349.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1261, allocations: 0 / 349.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005978/0.1267, allocations: 115.7 kB / 349.5 MB, free: 12.98 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001142/0.1268, allocations: 103.5 kB / 349.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007711/0.1276, allocations: 0.5856 MB / 350.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1276, allocations: 0 / 350.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004648/0.1281, allocations: 483.9 kB / 350.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000327/0.1284, allocations: 60.95 kB / 350.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009984/0.1294, allocations: 0.7625 MB / 351.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.1298, allocations: 0.8028 MB / 352.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.701e-05/0.1299, allocations: 22.98 kB / 352.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.648e-05/0.1299, allocations: 19.44 kB / 352.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1299, allocations: 0 / 352.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of Templates: time 0.007776/0.1377, allocations: 4.695 MB / 357 MB, free: 5.32 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: