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.008991/0.008991, allocations: 100.5 kB / 15.73 MB, free: 6.477 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.002336/0.002336, allocations: 189 kB / 16.67 MB, free: 6.391 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.809/1.809, allocations: 205.1 MB / 222.5 MB, free: 4.574 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.001188/0.001188, allocations: 51.39 kB / 326.6 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1079, allocations: 46.62 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004496/0.1124, allocations: 3.427 MB / 376.6 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.1139, allocations: 0.7913 MB / 377.4 MB, free: 13.08 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002021/0.1142, allocations: 8 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002432/0.1144, allocations: 67.3 kB / 377.5 MB, free: 13.01 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002804/0.1147, allocations: 138.8 kB / 377.6 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003275/0.115, allocations: 103.9 kB / 377.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005322/0.1156, allocations: 0.517 MB / 378.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002973/0.1159, allocations: 139.2 kB / 378.4 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002522/0.1162, allocations: 191.3 kB / 378.5 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002457/0.1164, allocations: 215 kB / 378.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.196e-05/0.1165, allocations: 40 kB / 378.8 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.494e-05/0.1166, allocations: 40 kB / 378.8 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.535e-05/0.1166, allocations: 87.69 kB / 378.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002018/0.1168, allocations: 218.9 kB / 379.1 MB, free: 11.33 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004555/0.1173, allocations: 498.2 kB / 379.6 MB, free: 10.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1173, allocations: 0 / 379.6 MB, free: 10.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1173, allocations: 0 / 379.6 MB, free: 10.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.1173, allocations: 0 / 379.6 MB, free: 10.84 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.001038/0.1184, allocations: 0.713 MB / 380.3 MB, free: 10.08 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.1184, allocations: 12.03 kB / 380.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.677e-05/0.1185, allocations: 52.36 kB / 380.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004423/0.119, allocations: 311.3 kB / 380.7 MB, free: 9.676 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.119, allocations: 25.03 kB / 380.7 MB, free: 9.652 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.097e-05/0.1191, allocations: 28.38 kB / 380.8 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005753/0.1196, allocations: 363.1 kB / 381.1 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.1197, allocations: 3.938 kB / 381.1 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.879e-05/0.1197, allocations: 16 kB / 381.1 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.497e-06/0.1197, allocations: 8 kB / 381.1 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005052/0.1202, allocations: 262.4 kB / 381.4 MB, free: 8.965 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.1221, allocations: 1.403 MB / 382.8 MB, free: 7.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003959/0.1225, allocations: 230.4 kB / 383 MB, free: 7.227 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/0.1227, allocations: 104.8 kB / 383.1 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.776e-05/0.1228, allocations: 4 kB / 383.1 MB, free: 7.117 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.1228, allocations: 34.56 kB / 383.2 MB, free: 7.074 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.372e-06/0.1228, allocations: 0 / 383.2 MB, free: 7.074 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001438/0.1243, allocations: 0.706 MB / 383.9 MB, free: 6.297 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.36e-05/0.1243, allocations: 55.41 kB / 383.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003034/0.1246, allocations: 308.5 kB / 384.2 MB, free: 5.922 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.1247, allocations: 29.7 kB / 384.3 MB, free: 5.887 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.1248, allocations: 204.2 kB / 384.5 MB, free: 5.684 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.612e-05/0.1249, allocations: 78.84 kB / 384.5 MB, free: 5.605 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.431e-05/0.1249, allocations: 53.61 kB / 384.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.1251, allocations: 334.8 kB / 384.9 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.1252, allocations: 83.95 kB / 385 MB, free: 5.129 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/0.1255, allocations: 132.2 kB / 385.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003576/0.1258, allocations: 200.1 kB / 385.3 MB, free: 4.773 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.1258, allocations: 0 / 385.3 MB, free: 4.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006735/0.1265, allocations: 359.4 kB / 385.7 MB, free: 4.406 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.1265, allocations: 8 kB / 385.7 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.1266, allocations: 0 / 385.7 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004225/0.127, allocations: 118.5 kB / 385.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001739/0.1272, allocations: 39.97 kB / 385.8 MB, free: 4.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003686/0.1309, allocations: 4.974 MB / 390.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.1311, allocations: 23.81 kB / 390.8 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.074e-05/0.1311, allocations: 8 kB / 390.8 MB, free: 14.8 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.0001899/0.1313, allocations: 149.8 kB / 391 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.484e-05/0.1314, allocations: 35.56 kB / 391 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.255e-05/0.1315, allocations: 39.23 kB / 391.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.1315, allocations: 4 kB / 391.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.1315, allocations: 0 / 391.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1315, allocations: 0 / 391.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004265/0.1319, allocations: 381.2 kB / 391.4 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.1319, allocations: 0 / 391.4 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.1321, allocations: 23.92 kB / 391.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003233/0.1324, allocations: 114.6 kB / 391.6 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.1324, allocations: 8 kB / 391.6 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003382/0.1358, allocations: 4.959 MB / 396.5 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1358, allocations: 0 / 396.5 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005665/0.1364, allocations: 397.6 kB / 396.9 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001301/0.1365, allocations: 132.6 kB / 397 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.168e-05/0.1366, allocations: 8 kB / 397.1 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.1368, allocations: 15.98 kB / 397.1 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.411e-05/0.1369, allocations: 27.91 kB / 397.1 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.1369, allocations: 11.92 kB / 397.1 MB, free: 8 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000207/0.1371, allocations: 215.1 kB / 397.3 MB, free: 7.789 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1371, allocations: 4 kB / 397.3 MB, free: 7.785 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006745/0.1378, allocations: 115.8 kB / 397.4 MB, free: 7.672 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.00015/0.138, allocations: 115.2 kB / 397.5 MB, free: 7.551 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009039/0.1389, allocations: 0.5715 MB / 398.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.1389, allocations: 0 / 398.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005464/0.1395, allocations: 479.9 kB / 398.6 MB, free: 6.434 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004042/0.1399, allocations: 61.39 kB / 398.6 MB, free: 6.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.1411, allocations: 0.6341 MB / 399.3 MB, free: 5.711 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/0.1416, allocations: 0.7953 MB / 400.1 MB, free: 4.891 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001228/0.1417, allocations: 22.98 kB / 400.1 MB, free: 4.867 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.999e-05/0.1417, allocations: 23.44 kB / 400.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1417, allocations: 0 / 400.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of Templates: time 0.01114/0.1529, allocations: 5.456 MB / 405.6 MB, free: 15.38 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)