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.001088/0.001088, allocations: 92.8 kB / 16.65 MB, free: 6.586 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.001001/0.001001, allocations: 181.9 kB / 17.56 MB, free: 6.203 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.774/1.774, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004914/0.0004914, allocations: 11.98 kB / 280.7 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1165, allocations: 47.59 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003517/0.12, allocations: 3.098 MB / 331.4 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.1215, allocations: 0.7803 MB / 332.2 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001628/0.1217, allocations: 7.938 kB / 332.2 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.1218, allocations: 43.61 kB / 332.2 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002251/0.1221, allocations: 123 kB / 332.4 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002791/0.1224, allocations: 91.92 kB / 332.5 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004392/0.1228, allocations: 485.7 kB / 332.9 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002484/0.1231, allocations: 111.9 kB / 333 MB, free: 15 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002038/0.1233, allocations: 171.3 kB / 333.2 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000223/0.1235, allocations: 187 kB / 333.4 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.403e-05/0.1236, allocations: 20 kB / 333.4 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.009e-05/0.1236, allocations: 20 kB / 333.4 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.287e-05/0.1237, allocations: 67.69 kB / 333.5 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001767/0.1239, allocations: 224.6 kB / 333.7 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003661/0.1242, allocations: 462.1 kB / 334.2 MB, free: 13.86 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.1243, allocations: 0 / 334.2 MB, free: 13.86 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1243, allocations: 0 / 334.2 MB, free: 13.86 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1243, allocations: 0 / 334.2 MB, free: 13.86 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.001036/0.1253, allocations: 0.6585 MB / 334.8 MB, free: 13.15 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.1254, allocations: 8.031 kB / 334.8 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.117e-05/0.1255, allocations: 52.36 kB / 334.9 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003788/0.1259, allocations: 315.2 kB / 335.2 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.756e-05/0.1259, allocations: 25.03 kB / 335.2 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.866e-05/0.126, allocations: 28.38 kB / 335.2 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006412/0.1266, allocations: 371 kB / 335.6 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.1266, allocations: 0 / 335.6 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.935e-05/0.1267, allocations: 12 kB / 335.6 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.1267, allocations: 8 kB / 335.6 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005462/0.1272, allocations: 286.4 kB / 335.9 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00197/0.1292, allocations: 1.426 MB / 337.3 MB, free: 10.49 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004083/0.1296, allocations: 234.5 kB / 337.6 MB, free: 10.25 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002153/0.1299, allocations: 116.8 kB / 337.7 MB, free: 10.13 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.91e-05/0.1299, allocations: 0 / 337.7 MB, free: 10.13 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.1299, allocations: 38.97 kB / 337.7 MB, free: 10.09 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.242e-06/0.1299, allocations: 4 kB / 337.7 MB, free: 10.08 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001484/0.1314, allocations: 0.7212 MB / 338.4 MB, free: 9.289 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/0.1315, allocations: 55.41 kB / 338.5 MB, free: 9.223 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003021/0.1318, allocations: 308.5 kB / 338.8 MB, free: 8.914 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.1318, allocations: 29.7 kB / 338.8 MB, free: 8.879 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.132, allocations: 212.2 kB / 339 MB, free: 8.664 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.449e-05/0.132, allocations: 70.92 kB / 339.1 MB, free: 8.594 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.501e-05/0.1321, allocations: 29.7 kB / 339.1 MB, free: 8.559 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1322, allocations: 338.8 kB / 339.5 MB, free: 8.219 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.1324, allocations: 83.97 kB / 339.5 MB, free: 8.137 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.1326, allocations: 136.2 kB / 339.7 MB, free: 7.988 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004063/0.133, allocations: 216 kB / 339.9 MB, free: 7.762 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.1331, allocations: 4 kB / 339.9 MB, free: 7.758 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007063/0.1338, allocations: 367.5 kB / 340.2 MB, free: 7.383 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.1338, allocations: 4 kB / 340.3 MB, free: 7.379 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.1338, allocations: 0 / 340.3 MB, free: 7.379 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004256/0.1342, allocations: 122.6 kB / 340.4 MB, free: 7.25 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.1344, allocations: 39.91 kB / 340.4 MB, free: 7.211 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00339/0.1378, allocations: 4.464 MB / 344.9 MB, free: 2.344 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002291/0.1381, allocations: 23.78 kB / 344.9 MB, free: 2.32 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.873e-05/0.1381, allocations: 8 kB / 344.9 MB, free: 2.312 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.0001835/0.1383, allocations: 149.8 kB / 345.1 MB, free: 2.156 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.795e-05/0.1384, allocations: 35.62 kB / 345.1 MB, free: 2.121 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.598e-05/0.1384, allocations: 39.23 kB / 345.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1385, allocations: 4 kB / 345.1 MB, free: 2.074 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.1385, allocations: 0 / 345.1 MB, free: 2.074 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1385, allocations: 0 / 345.1 MB, free: 2.074 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004034/0.1389, allocations: 377.3 kB / 345.5 MB, free: 1.656 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.1389, allocations: 0 / 345.5 MB, free: 1.656 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001177/0.139, allocations: 27.92 kB / 345.5 MB, free: 1.629 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000313/0.1393, allocations: 118.6 kB / 345.6 MB, free: 1.504 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.1394, allocations: 8 kB / 345.6 MB, free: 1.496 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003484/0.1429, allocations: 4.449 MB / 350.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1429, allocations: 288 / 350.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006617/0.1436, allocations: 422.2 kB / 350.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.1437, allocations: 120.7 kB / 350.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.438e-05/0.1437, allocations: 11.94 kB / 350.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.144, allocations: 19.98 kB / 350.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.865e-05/0.1441, allocations: 27.95 kB / 350.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.1441, allocations: 12 kB / 350.7 MB, free: 12.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002219/0.1443, allocations: 215.1 kB / 350.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1443, allocations: 3.938 kB / 350.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006934/0.145, allocations: 115.8 kB / 351 MB, free: 11.68 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.0001304/0.1452, allocations: 99.25 kB / 351.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009233/0.1461, allocations: 0.5817 MB / 351.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1461, allocations: 4.125 kB / 351.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005493/0.1467, allocations: 495.7 kB / 352.2 MB, free: 10.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004837/0.1472, allocations: 57 kB / 352.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.1484, allocations: 0.7882 MB / 353 MB, free: 9.559 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003693/0.1488, allocations: 0.7989 MB / 353.8 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00011/0.1489, allocations: 22.98 kB / 353.9 MB, free: 8.707 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.186e-05/0.149, allocations: 19.44 kB / 353.9 MB, free: 8.688 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.149, allocations: 0 / 353.9 MB, free: 8.688 MB / 302.1 MB Notification: Performance of Templates: time 0.009083/0.1581, allocations: 4.871 MB / 358.7 MB, free: 3.824 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)