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.008149/0.008149, allocations: 100.5 kB / 15.73 MB, free: 6.035 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.001237/0.001237, allocations: 187.8 kB / 16.67 MB, free: 5.973 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.662/1.662, allocations: 205.1 MB / 222.5 MB, free: 4.484 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.001207/0.001207, allocations: 55.14 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1072, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004356/0.1117, allocations: 3.427 MB / 376.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.1132, allocations: 0.7913 MB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002072/0.1134, allocations: 11.94 kB / 377.4 MB, free: 13.06 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002219/0.1137, allocations: 63.34 kB / 377.5 MB, free: 13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00022/0.1139, allocations: 134.8 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003004/0.1142, allocations: 119.7 kB / 377.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004607/0.1147, allocations: 0.5016 MB / 378.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002523/0.1149, allocations: 139.2 kB / 378.4 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002187/0.1152, allocations: 187.3 kB / 378.5 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000247/0.1154, allocations: 211 kB / 378.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.716e-05/0.1155, allocations: 40 kB / 378.8 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.268e-05/0.1155, allocations: 40 kB / 378.8 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.358e-05/0.1156, allocations: 87.62 kB / 378.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001831/0.1158, allocations: 222.9 kB / 379.1 MB, free: 11.33 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000428/0.1162, allocations: 494.2 kB / 379.6 MB, free: 10.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1163, allocations: 4 kB / 379.6 MB, free: 10.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1163, allocations: 0 / 379.6 MB, free: 10.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.1163, 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.001142/0.1174, allocations: 0.7169 MB / 380.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.1175, allocations: 8.031 kB / 380.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.296e-05/0.1176, allocations: 52.38 kB / 380.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004499/0.118, allocations: 315.2 kB / 380.7 MB, free: 9.668 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.1181, allocations: 25.03 kB / 380.7 MB, free: 9.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.091e-05/0.1181, allocations: 36.31 kB / 380.8 MB, free: 9.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005844/0.1187, allocations: 359.1 kB / 381.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.1188, allocations: 0 / 381.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.88e-05/0.1188, allocations: 16 kB / 381.1 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.1188, allocations: 8 kB / 381.1 MB, free: 9.215 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005377/0.1194, allocations: 266.4 kB / 381.4 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.1212, allocations: 1.407 MB / 382.8 MB, free: 7.445 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004128/0.1216, allocations: 222.4 kB / 383 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002014/0.1219, allocations: 108.8 kB / 383.1 MB, free: 7.109 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.1219, allocations: 7.984 kB / 383.1 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.1219, allocations: 34.56 kB / 383.2 MB, free: 7.059 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.242e-06/0.1219, allocations: 0 / 383.2 MB, free: 7.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001503/0.1234, allocations: 0.7021 MB / 383.9 MB, free: 6.285 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.1235, allocations: 55.41 kB / 383.9 MB, free: 6.219 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003025/0.1238, allocations: 308.5 kB / 384.2 MB, free: 5.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.987e-05/0.1238, allocations: 33.7 kB / 384.3 MB, free: 5.871 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001538/0.124, allocations: 204.2 kB / 384.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.73e-05/0.1241, allocations: 70.86 kB / 384.5 MB, free: 5.598 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.255e-05/0.1242, allocations: 57.55 kB / 384.6 MB, free: 5.535 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.1243, allocations: 342.8 kB / 384.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.1245, allocations: 75.97 kB / 385 MB, free: 5.117 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.1247, allocations: 128.2 kB / 385.1 MB, free: 4.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003664/0.1251, allocations: 196.1 kB / 385.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1251, allocations: 7.938 kB / 385.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006597/0.1257, allocations: 347.6 kB / 385.7 MB, free: 4.406 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.1258, allocations: 8 kB / 385.7 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1258, allocations: 0 / 385.7 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000421/0.1262, allocations: 122.5 kB / 385.8 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001745/0.1264, allocations: 31.97 kB / 385.8 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003995/0.1304, allocations: 4.982 MB / 390.8 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002751/0.1307, allocations: 24.09 kB / 390.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.13e-05/0.1307, allocations: 15.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.0002475/0.131, allocations: 149.8 kB / 391 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.363e-05/0.1311, allocations: 39.5 kB / 391 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.777e-05/0.1312, allocations: 35.17 kB / 391.1 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1312, allocations: 0 / 391.1 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1312, allocations: 4 kB / 391.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.1312, allocations: 0 / 391.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004592/0.1317, allocations: 377.2 kB / 391.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1317, allocations: 3.938 kB / 391.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.1318, allocations: 19.98 kB / 391.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003161/0.1321, allocations: 114.5 kB / 391.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.1321, allocations: 7.938 kB / 391.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003786/0.1359, allocations: 4.959 MB / 396.5 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.136, allocations: 0 / 396.5 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006203/0.1366, allocations: 405.3 kB / 396.9 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.1367, allocations: 128.6 kB / 397.1 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.205e-05/0.1368, allocations: 8 kB / 397.1 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.137, allocations: 15.98 kB / 397.1 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.1371, allocations: 31.81 kB / 397.1 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.1371, allocations: 8 kB / 397.1 MB, free: 7.988 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002426/0.1374, allocations: 223 kB / 397.3 MB, free: 7.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1374, allocations: 0 / 397.3 MB, free: 7.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006938/0.1381, allocations: 115.8 kB / 397.4 MB, free: 7.656 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.0001729/0.1383, allocations: 111.2 kB / 397.6 MB, free: 7.539 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009528/0.1392, allocations: 0.5672 MB / 398.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.1393, allocations: 0 / 398.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004794/0.1398, allocations: 484 kB / 398.6 MB, free: 6.422 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004222/0.1402, allocations: 61.77 kB / 398.7 MB, free: 6.363 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.1414, allocations: 0.6379 MB / 399.3 MB, free: 5.695 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.1417, allocations: 0.7953 MB / 400.1 MB, free: 4.875 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.973e-05/0.1418, allocations: 22.98 kB / 400.1 MB, free: 4.852 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.947e-05/0.1419, allocations: 15.44 kB / 400.1 MB, free: 4.836 MB / 334.1 MB Notification: Performance of SimCode: time 1.693e-06/0.1419, allocations: 0 / 400.1 MB, free: 4.836 MB / 334.1 MB Notification: Performance of Templates: time 0.01022/0.1521, allocations: 5.455 MB / 405.6 MB, free: 15.37 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)