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.001445/0.001446, allocations: 99.78 kB / 16.5 MB, free: 6.641 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.001512/0.001513, allocations: 194.6 kB / 17.42 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.757/1.757, allocations: 205.1 MB / 223.3 MB, free: 12.45 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.001236/0.001236, allocations: 51.92 kB / 279.3 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1315, allocations: 46.64 MB / 326 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004231/0.1358, allocations: 3.48 MB / 329.4 MB, free: 1.379 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.137, allocations: 0.7841 MB / 330.2 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001578/0.1371, allocations: 11.94 kB / 330.2 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000189/0.1373, allocations: 47.61 kB / 330.3 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002095/0.1376, allocations: 115 kB / 330.4 MB, free: 424 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002709/0.1378, allocations: 91.91 kB / 330.5 MB, free: 332 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004565/0.1383, allocations: 489.7 kB / 331 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/0.1385, allocations: 123.9 kB / 331.1 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002005/0.1387, allocations: 175.2 kB / 331.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001983/0.1389, allocations: 195.1 kB / 331.4 MB, free: 15.35 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.034e-05/0.139, allocations: 24 kB / 331.5 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.607e-05/0.1391, allocations: 28 kB / 331.5 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.534e-05/0.1391, allocations: 75.62 kB / 331.6 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001884/0.1393, allocations: 210.9 kB / 331.8 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003539/0.1397, allocations: 466.3 kB / 332.2 MB, free: 14.56 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.1397, allocations: 0 / 332.2 MB, free: 14.56 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1397, allocations: 0 / 332.2 MB, free: 14.56 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.297e-06/0.1397, allocations: 0 / 332.2 MB, free: 14.56 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.001007/0.1407, allocations: 0.7129 MB / 332.9 MB, free: 13.8 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.1408, allocations: 12.02 kB / 333 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.997e-05/0.1409, allocations: 48.38 kB / 333 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003249/0.1412, allocations: 307.3 kB / 333.3 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.1412, allocations: 25.03 kB / 333.3 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.425e-05/0.1413, allocations: 40.36 kB / 333.4 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000577/0.1419, allocations: 359 kB / 333.7 MB, free: 12.97 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.1419, allocations: 0 / 333.7 MB, free: 12.97 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.1419, allocations: 12 kB / 333.7 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.1419, allocations: 8 kB / 333.7 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005159/0.1425, allocations: 274.4 kB / 334 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.1444, allocations: 1.422 MB / 335.4 MB, free: 11.16 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003925/0.1448, allocations: 218.5 kB / 335.6 MB, free: 10.94 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002011/0.1451, allocations: 112.8 kB / 335.7 MB, free: 10.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.11e-05/0.1451, allocations: 4 kB / 335.7 MB, free: 10.82 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.1451, allocations: 34.97 kB / 335.8 MB, free: 10.78 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 2.545e-06/0.1451, allocations: 0 / 335.8 MB, free: 10.78 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001466/0.1466, allocations: 0.7095 MB / 336.5 MB, free: 9.996 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.1467, allocations: 51.41 kB / 336.5 MB, free: 9.934 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002985/0.147, allocations: 304.6 kB / 336.8 MB, free: 9.629 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.147, allocations: 29.7 kB / 336.9 MB, free: 9.594 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.1471, allocations: 212.1 kB / 337.1 MB, free: 9.379 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.771e-05/0.1472, allocations: 78.89 kB / 337.2 MB, free: 9.301 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.942e-05/0.1473, allocations: 45.7 kB / 337.2 MB, free: 9.25 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1474, allocations: 338.8 kB / 337.5 MB, free: 8.91 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001893/0.1476, allocations: 91.89 kB / 337.6 MB, free: 8.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.1478, allocations: 116.2 kB / 337.7 MB, free: 8.691 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003651/0.1482, allocations: 200.1 kB / 337.9 MB, free: 8.48 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1482, allocations: 4 kB / 337.9 MB, free: 8.477 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007063/0.1489, allocations: 355.5 kB / 338.3 MB, free: 8.113 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.1489, allocations: 8 kB / 338.3 MB, free: 8.105 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-06/0.149, allocations: 4 kB / 338.3 MB, free: 8.102 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004154/0.1494, allocations: 114.5 kB / 338.4 MB, free: 7.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001809/0.1496, allocations: 27.92 kB / 338.4 MB, free: 7.953 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003424/0.153, allocations: 4.453 MB / 342.9 MB, free: 3.098 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002417/0.1533, allocations: 35.75 kB / 342.9 MB, free: 3.062 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.1533, allocations: 8 kB / 342.9 MB, free: 3.055 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.0001991/0.1535, allocations: 145.8 kB / 343.1 MB, free: 2.902 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.191e-05/0.1536, allocations: 31.62 kB / 343.1 MB, free: 2.871 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.07e-05/0.1536, allocations: 43.23 kB / 343.1 MB, free: 2.824 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.1537, allocations: 4 kB / 343.1 MB, free: 2.82 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.1537, allocations: 0 / 343.1 MB, free: 2.82 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.1537, allocations: 3.984 kB / 343.1 MB, free: 2.816 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003975/0.1541, allocations: 377.2 kB / 343.5 MB, free: 2.398 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.1541, allocations: 0 / 343.5 MB, free: 2.398 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001301/0.1542, allocations: 28.19 kB / 343.5 MB, free: 2.371 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003135/0.1545, allocations: 114.5 kB / 343.7 MB, free: 2.25 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.1546, allocations: 0 / 343.7 MB, free: 2.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003155/0.1577, allocations: 4.453 MB / 348.1 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1578, allocations: 3.984 kB / 348.1 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005851/0.1583, allocations: 398.4 kB / 348.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/0.1585, allocations: 124.7 kB / 348.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.606e-05/0.1585, allocations: 4 kB / 348.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002218/0.1587, allocations: 23.97 kB / 348.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.437e-05/0.1588, allocations: 27.91 kB / 348.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.1589, allocations: 8 kB / 348.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002147/0.1591, allocations: 219.1 kB / 348.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1591, allocations: 0 / 348.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006658/0.1598, allocations: 115.7 kB / 349 MB, free: 12.45 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.0001411/0.1599, allocations: 103.2 kB / 349.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008307/0.1608, allocations: 0.5664 MB / 349.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1608, allocations: 0 / 349.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004626/0.1612, allocations: 491.7 kB / 350.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004939/0.1617, allocations: 53 kB / 350.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001175/0.1629, allocations: 0.7737 MB / 351 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003536/0.1633, allocations: 0.7951 MB / 351.8 MB, free: 9.547 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001103/0.1634, allocations: 27 kB / 351.8 MB, free: 9.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.299e-05/0.1635, allocations: 19.44 kB / 351.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1635, allocations: 4 kB / 351.8 MB, free: 9.496 MB / 302.1 MB Notification: Performance of Templates: time 0.008784/0.1723, allocations: 4.905 MB / 356.7 MB, free: 4.594 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)