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.008281/0.008281, allocations: 98.42 kB / 15.73 MB, free: 6.031 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.00157/0.001569, allocations: 195.8 kB / 16.67 MB, free: 5.953 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.717/1.717, allocations: 205.1 MB / 222.6 MB, free: 4.527 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.001274/0.001274, allocations: 55.23 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1172, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004741/0.122, allocations: 3.442 MB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.1234, allocations: 0.7874 MB / 377.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001674/0.1236, allocations: 8 kB / 377.4 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001901/0.1238, allocations: 71.3 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002222/0.124, allocations: 130.8 kB / 377.6 MB, free: 12.83 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003071/0.1243, allocations: 107.8 kB / 377.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004726/0.1248, allocations: 0.5054 MB / 378.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.125, allocations: 139.2 kB / 378.4 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002104/0.1253, allocations: 183.4 kB / 378.5 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002466/0.1255, allocations: 218.9 kB / 378.7 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.248e-05/0.1256, allocations: 40 kB / 378.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.676e-05/0.1257, allocations: 40 kB / 378.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.961e-05/0.1257, allocations: 91.67 kB / 378.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001822/0.1259, allocations: 218.9 kB / 379.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004629/0.1264, allocations: 497.9 kB / 379.6 MB, free: 10.81 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1264, allocations: 0 / 379.6 MB, free: 10.81 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1264, allocations: 0 / 379.6 MB, free: 10.81 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.016e-06/0.1264, allocations: 0 / 379.6 MB, free: 10.81 MB / 318.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.001064/0.1275, allocations: 0.7321 MB / 380.3 MB, free: 10.03 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.1276, allocations: 12.03 kB / 380.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.538e-05/0.1276, allocations: 48.66 kB / 380.4 MB, free: 9.973 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/0.1281, allocations: 311.5 kB / 380.7 MB, free: 9.629 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.871e-05/0.1282, allocations: 29.03 kB / 380.7 MB, free: 9.602 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.116e-05/0.1282, allocations: 28.38 kB / 380.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000571/0.1288, allocations: 363 kB / 381.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.1288, allocations: 0 / 381.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.125e-05/0.1288, allocations: 12 kB / 381.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.1289, allocations: 8 kB / 381.1 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005298/0.1294, allocations: 274.4 kB / 381.4 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001777/0.1312, allocations: 1.415 MB / 382.8 MB, free: 7.395 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003879/0.1316, allocations: 222.5 kB / 383 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001981/0.1318, allocations: 108.8 kB / 383.1 MB, free: 7.059 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.1318, allocations: 4 kB / 383.2 MB, free: 7.055 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.1318, allocations: 30.56 kB / 383.2 MB, free: 7.016 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.223e-06/0.1319, allocations: 4 kB / 383.2 MB, free: 7.012 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001418/0.1333, allocations: 0.7023 MB / 383.9 MB, free: 6.238 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.891e-05/0.1333, allocations: 51.41 kB / 383.9 MB, free: 6.176 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002831/0.1336, allocations: 312.5 kB / 384.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.681e-05/0.1336, allocations: 33.7 kB / 384.3 MB, free: 5.824 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.1338, allocations: 212.5 kB / 384.5 MB, free: 5.613 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.257e-05/0.1338, allocations: 79.31 kB / 384.6 MB, free: 5.535 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.149e-05/0.1339, allocations: 49.66 kB / 384.6 MB, free: 5.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.134, allocations: 338.8 kB / 384.9 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.1342, allocations: 83.95 kB / 385 MB, free: 5.059 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/0.1345, allocations: 120.2 kB / 385.1 MB, free: 4.926 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003688/0.1348, allocations: 204.1 kB / 385.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1348, allocations: 7.938 kB / 385.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000668/0.1355, allocations: 359.7 kB / 385.7 MB, free: 4.336 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.1355, allocations: 5.094 kB / 385.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.1356, allocations: 4 kB / 385.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003715/0.1359, allocations: 118.6 kB / 385.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.1361, allocations: 31.92 kB / 385.9 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003646/0.1398, allocations: 4.979 MB / 390.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/0.14, allocations: 27.83 kB / 390.9 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.594e-05/0.14, allocations: 4 kB / 390.9 MB, free: 14.74 MB / 334.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.0001643/0.1402, allocations: 149.8 kB / 391 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.018e-05/0.1403, allocations: 39.75 kB / 391.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.356e-05/0.1404, allocations: 35.17 kB / 391.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.1404, allocations: 4 kB / 391.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.1404, allocations: 0 / 391.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.1404, allocations: 3.984 kB / 391.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003797/0.1408, allocations: 373.3 kB / 391.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1408, allocations: 0 / 391.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.1409, allocations: 31.91 kB / 391.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003055/0.1412, allocations: 114.6 kB / 391.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.1412, allocations: 8 kB / 391.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003507/0.1448, allocations: 4.963 MB / 396.6 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.1448, allocations: 0 / 396.6 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005996/0.1454, allocations: 405.7 kB / 397 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.1455, allocations: 120.9 kB / 397.1 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.571e-05/0.1456, allocations: 11.92 kB / 397.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.1458, allocations: 19.98 kB / 397.1 MB, free: 7.961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.436e-05/0.1459, allocations: 27.97 kB / 397.1 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.735e-05/0.1459, allocations: 11.94 kB / 397.2 MB, free: 7.922 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002137/0.1461, allocations: 219.1 kB / 397.4 MB, free: 7.707 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1461, allocations: 0 / 397.4 MB, free: 7.707 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006234/0.1468, allocations: 111.8 kB / 397.5 MB, free: 7.598 MB / 334.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.0001243/0.1469, allocations: 107.2 kB / 397.6 MB, free: 7.484 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000868/0.1478, allocations: 0.579 MB / 398.2 MB, free: 6.867 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1478, allocations: 384 / 398.2 MB, free: 6.867 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000499/0.1483, allocations: 492 kB / 398.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003988/0.1487, allocations: 61.11 kB / 398.7 MB, free: 6.289 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.1498, allocations: 0.6412 MB / 399.3 MB, free: 5.617 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.1501, allocations: 0.7914 MB / 400.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.941e-05/0.1502, allocations: 26.97 kB / 400.2 MB, free: 4.773 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.869e-05/0.1503, allocations: 23.42 kB / 400.2 MB, free: 4.75 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1503, allocations: 0 / 400.2 MB, free: 4.75 MB / 334.1 MB Notification: Performance of Templates: time 0.009636/0.1599, allocations: 5.447 MB / 405.6 MB, free: 15.29 MB / 350.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)