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.009166/0.009166, allocations: 103.2 kB / 15.73 MB, free: 6.047 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.002199/0.002199, allocations: 195.7 kB / 16.67 MB, free: 5.977 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.704/1.704, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001443/0.001443, allocations: 51.72 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1216, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005243/0.1269, allocations: 3.435 MB / 376.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0019/0.1288, allocations: 0.7874 MB / 377.4 MB, free: 13.06 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005595/0.1294, allocations: 11.94 kB / 377.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000331/0.1298, allocations: 63.36 kB / 377.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004951/0.1303, allocations: 138.8 kB / 377.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000435/0.1307, allocations: 107.8 kB / 377.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008237/0.1316, allocations: 0.5093 MB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003204/0.1319, allocations: 143.2 kB / 378.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003908/0.1323, allocations: 187.3 kB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003851/0.1327, allocations: 215 kB / 378.8 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.969e-05/0.1328, allocations: 40 kB / 378.8 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001049/0.1329, allocations: 40 kB / 378.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.133, allocations: 87.62 kB / 378.9 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002969/0.1333, allocations: 218.9 kB / 379.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007627/0.1341, allocations: 494.2 kB / 379.6 MB, free: 10.83 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.147e-05/0.1341, allocations: 4 kB / 379.6 MB, free: 10.83 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.158e-06/0.1341, allocations: 0 / 379.6 MB, free: 10.83 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.432e-05/0.1342, allocations: 4 kB / 379.6 MB, free: 10.82 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.001925/0.1361, allocations: 0.713 MB / 380.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.054e-05/0.1362, allocations: 15.97 kB / 380.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.1364, allocations: 48.38 kB / 380.4 MB, free: 10 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008164/0.1372, allocations: 311.3 kB / 380.7 MB, free: 9.656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.813e-05/0.1372, allocations: 25.03 kB / 380.7 MB, free: 9.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.255e-05/0.1373, allocations: 28.38 kB / 380.8 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007856/0.1381, allocations: 363.1 kB / 381.1 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.1381, allocations: 0 / 381.1 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.337e-05/0.1382, allocations: 16 kB / 381.1 MB, free: 9.215 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.1382, allocations: 11.94 kB / 381.1 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005847/0.1388, allocations: 262.4 kB / 381.4 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00251/0.1413, allocations: 1.411 MB / 382.8 MB, free: 7.434 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004042/0.1418, allocations: 222.4 kB / 383 MB, free: 7.207 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002093/0.142, allocations: 108.8 kB / 383.1 MB, free: 7.098 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.142, allocations: 4 kB / 383.1 MB, free: 7.094 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.142, allocations: 38.55 kB / 383.2 MB, free: 7.047 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.926e-06/0.1421, allocations: 0 / 383.2 MB, free: 7.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001515/0.1436, allocations: 0.6983 MB / 383.9 MB, free: 6.277 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.1436, allocations: 59.39 kB / 383.9 MB, free: 6.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003292/0.144, allocations: 308.4 kB / 384.2 MB, free: 5.898 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.144, allocations: 29.7 kB / 384.3 MB, free: 5.863 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.1442, allocations: 208.2 kB / 384.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.866e-05/0.1442, allocations: 74.86 kB / 384.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.158e-05/0.1443, allocations: 53.61 kB / 384.6 MB, free: 5.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1445, allocations: 338.8 kB / 384.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.1447, allocations: 79.97 kB / 385 MB, free: 5.105 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002235/0.1449, allocations: 128.2 kB / 385.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003912/0.1453, allocations: 204 kB / 385.3 MB, free: 4.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.1453, allocations: 0 / 385.3 MB, free: 4.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007501/0.1461, allocations: 351.6 kB / 385.7 MB, free: 4.391 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/0.1461, allocations: 8 kB / 385.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1462, allocations: 0 / 385.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004575/0.1466, allocations: 118.4 kB / 385.8 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.1468, allocations: 36.03 kB / 385.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003899/0.1507, allocations: 4.974 MB / 390.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002802/0.151, allocations: 23.81 kB / 390.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.579e-05/0.1511, allocations: 11.98 kB / 390.8 MB, free: 14.79 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.000228/0.1513, allocations: 149.8 kB / 391 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.26e-05/0.1514, allocations: 35.66 kB / 391 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.502e-05/0.1515, allocations: 43.22 kB / 391.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1515, allocations: 0 / 391.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.1515, allocations: 4.281 kB / 391.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1515, allocations: 0 / 391.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004573/0.152, allocations: 381.2 kB / 391.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.152, allocations: 3.938 kB / 391.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.1521, allocations: 19.98 kB / 391.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000368/0.1525, allocations: 118.4 kB / 391.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.1525, allocations: 4.062 kB / 391.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004014/0.1565, allocations: 4.959 MB / 396.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.1565, allocations: 0 / 396.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006701/0.1572, allocations: 405.5 kB / 396.9 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.1574, allocations: 128.6 kB / 397.1 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.078e-05/0.1574, allocations: 8 kB / 397.1 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.1577, allocations: 15.98 kB / 397.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.1578, allocations: 27.95 kB / 397.1 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.008e-05/0.1578, allocations: 7.938 kB / 397.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002231/0.158, allocations: 219.1 kB / 397.3 MB, free: 7.766 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.158, allocations: 4 kB / 397.3 MB, free: 7.762 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006953/0.1587, allocations: 115.8 kB / 397.4 MB, free: 7.648 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.0001567/0.1589, allocations: 111.2 kB / 397.5 MB, free: 7.531 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009717/0.1599, allocations: 0.5709 MB / 398.1 MB, free: 6.922 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1599, allocations: 0 / 398.1 MB, free: 6.922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005283/0.1604, allocations: 475.9 kB / 398.6 MB, free: 6.418 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004265/0.1609, allocations: 65.8 kB / 398.6 MB, free: 6.355 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.1622, allocations: 0.6302 MB / 399.3 MB, free: 5.695 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.1625, allocations: 0.7992 MB / 400.1 MB, free: 4.871 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001078/0.1626, allocations: 27.02 kB / 400.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.21e-05/0.1627, allocations: 19.44 kB / 400.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1627, allocations: 0 / 400.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of Templates: time 0.01081/0.1735, allocations: 5.623 MB / 405.7 MB, free: 15.19 MB / 350.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)