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.001198/0.001198, allocations: 109.3 kB / 16.62 MB, free: 6.961 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.001046/0.001046, allocations: 190 kB / 17.54 MB, free: 6.066 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.589/1.589, allocations: 205.1 MB / 223.4 MB, free: 12.46 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.001351/0.001351, allocations: 47.94 kB / 279.5 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1126, allocations: 46.63 MB / 326.1 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.00528/0.1179, allocations: 3.48 MB / 329.6 MB, free: 1.297 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001792/0.1197, allocations: 0.7802 MB / 330.4 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003144/0.1201, allocations: 4 kB / 330.4 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002168/0.1203, allocations: 59.53 kB / 330.5 MB, free: 456 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002465/0.1206, allocations: 111 kB / 330.6 MB, free: 344 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003105/0.1209, allocations: 95.91 kB / 330.7 MB, free: 248 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004664/0.1214, allocations: 0.4939 MB / 331.2 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000255/0.1216, allocations: 135.2 kB / 331.3 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002337/0.1219, allocations: 191.3 kB / 331.5 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.1221, allocations: 211 kB / 331.7 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.112e-05/0.1222, allocations: 40 kB / 331.7 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.943e-05/0.1222, allocations: 44 kB / 331.8 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.556e-05/0.1223, allocations: 83.69 kB / 331.8 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000203/0.1225, allocations: 222.9 kB / 332.1 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004469/0.123, allocations: 490.2 kB / 332.5 MB, free: 14.35 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.123, allocations: 0 / 332.5 MB, free: 14.35 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.123, allocations: 0 / 332.5 MB, free: 14.35 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.123, allocations: 3.984 kB / 332.5 MB, free: 14.35 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.001103/0.1241, allocations: 0.7129 MB / 333.3 MB, free: 13.58 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.1242, allocations: 8.031 kB / 333.3 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.275e-05/0.1243, allocations: 48.38 kB / 333.3 MB, free: 13.53 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003421/0.1246, allocations: 315.3 kB / 333.6 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.1247, allocations: 21.03 kB / 333.6 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.365e-05/0.1247, allocations: 32.38 kB / 333.7 MB, free: 13.13 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005839/0.1253, allocations: 359.1 kB / 334 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.1253, allocations: 7.875 kB / 334 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.207e-05/0.1254, allocations: 12 kB / 334 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.1254, allocations: 8 kB / 334.1 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000497/0.1259, allocations: 274.4 kB / 334.3 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001801/0.1277, allocations: 1.422 MB / 335.7 MB, free: 10.94 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004012/0.1281, allocations: 230.3 kB / 336 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001937/0.1283, allocations: 104.8 kB / 336.1 MB, free: 10.6 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.1283, allocations: 4 kB / 336.1 MB, free: 10.6 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.1284, allocations: 38.97 kB / 336.1 MB, free: 10.55 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.313e-06/0.1284, allocations: 4 kB / 336.1 MB, free: 10.55 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001493/0.1299, allocations: 0.7056 MB / 336.8 MB, free: 9.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.1299, allocations: 55.41 kB / 336.9 MB, free: 9.703 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003069/0.1302, allocations: 304.6 kB / 337.2 MB, free: 9.398 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.1303, allocations: 25.7 kB / 337.2 MB, free: 9.367 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.1305, allocations: 212.1 kB / 337.4 MB, free: 9.152 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.884e-05/0.1305, allocations: 70.92 kB / 337.5 MB, free: 9.082 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.579e-05/0.1306, allocations: 49.7 kB / 337.5 MB, free: 9.027 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1308, allocations: 338.8 kB / 337.9 MB, free: 8.688 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/0.131, allocations: 79.97 kB / 337.9 MB, free: 8.609 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002034/0.1312, allocations: 124.2 kB / 338.1 MB, free: 8.473 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003712/0.1315, allocations: 208 kB / 338.3 MB, free: 8.254 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1316, allocations: 0 / 338.3 MB, free: 8.254 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006748/0.1322, allocations: 351.5 kB / 338.6 MB, free: 7.895 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.1323, allocations: 12.06 kB / 338.6 MB, free: 7.883 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1323, allocations: 0 / 338.6 MB, free: 7.883 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000457/0.1328, allocations: 118.5 kB / 338.7 MB, free: 7.758 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001795/0.1329, allocations: 31.92 kB / 338.8 MB, free: 7.727 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003798/0.1367, allocations: 4.974 MB / 343.7 MB, free: 2.34 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002175/0.137, allocations: 23.78 kB / 343.8 MB, free: 2.316 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.45e-05/0.137, allocations: 15.98 kB / 343.8 MB, free: 2.301 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 (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.0001857/0.1372, allocations: 141.8 kB / 343.9 MB, free: 2.152 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.695e-05/0.1373, allocations: 39.62 kB / 343.9 MB, free: 2.113 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.181e-05/0.1374, allocations: 39.45 kB / 344 MB, free: 2.07 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1374, allocations: 4 kB / 344 MB, free: 2.066 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1374, allocations: 0 / 344 MB, free: 2.066 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.1374, allocations: 3.938 kB / 344 MB, free: 2.062 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004313/0.1378, allocations: 377.2 kB / 344.4 MB, free: 1.645 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1378, allocations: 0 / 344.4 MB, free: 1.645 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001402/0.138, allocations: 23.92 kB / 344.4 MB, free: 1.621 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003121/0.1383, allocations: 122.6 kB / 344.5 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.1383, allocations: 4 kB / 344.5 MB, free: 1.488 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003465/0.1418, allocations: 4.963 MB / 349.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1418, allocations: 0 / 349.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006532/0.1425, allocations: 406.4 kB / 349.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001418/0.1427, allocations: 120.7 kB / 350 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.866e-05/0.1427, allocations: 8 kB / 350 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.1429, allocations: 23.98 kB / 350 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.98e-05/0.143, allocations: 27.89 kB / 350 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.1431, allocations: 11.94 kB / 350.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002343/0.1433, allocations: 219.1 kB / 350.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1433, allocations: 0 / 350.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007008/0.144, allocations: 115.7 kB / 350.4 MB, free: 11.16 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 (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.0001694/0.1442, allocations: 107.2 kB / 350.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009667/0.1452, allocations: 0.5741 MB / 351.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1452, allocations: 0 / 351.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004753/0.1457, allocations: 491.8 kB / 351.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005154/0.1462, allocations: 65.67 kB / 351.6 MB, free: 9.844 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.1473, allocations: 0.763 MB / 352.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003004/0.1477, allocations: 0.7991 MB / 353.2 MB, free: 8.227 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00011/0.1478, allocations: 23.02 kB / 353.2 MB, free: 8.203 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.502e-05/0.1478, allocations: 23.42 kB / 353.2 MB, free: 8.18 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1478, allocations: 0 / 353.2 MB, free: 8.18 MB / 302.1 MB Notification: Performance of Templates: time 0.008961/0.1568, allocations: 5.223 MB / 358.4 MB, free: 2.961 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (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)