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.009692/0.009692, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.001931/0.001931, allocations: 197.2 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.625/1.625, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001489/0.001489, allocations: 51.92 kB / 326.6 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1178, allocations: 46.61 MB / 373.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.00523/0.1231, allocations: 3.442 MB / 376.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001761/0.1249, allocations: 0.7991 MB / 377.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000461/0.1254, allocations: 4 kB / 377.4 MB, free: 296 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003145/0.1258, allocations: 71.3 kB / 377.5 MB, free: 224 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000482/0.1263, allocations: 138.8 kB / 377.6 MB, free: 84 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2854/0.4117, allocations: 99.78 kB / 377.7 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00175/0.4135, allocations: 0.5016 MB / 378.2 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003497/0.4139, allocations: 137.5 kB / 378.3 MB, free: 9.797 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003893/0.4143, allocations: 193.5 kB / 378.5 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003369/0.4146, allocations: 205.7 kB / 378.7 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000113/0.4147, allocations: 39.88 kB / 378.8 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.4149, allocations: 38.88 kB / 378.8 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001401/0.415, allocations: 91.91 kB / 378.9 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002919/0.4153, allocations: 222.5 kB / 379.1 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009281/0.4162, allocations: 492.3 kB / 379.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.261e-05/0.4163, allocations: 1.453 kB / 379.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.869e-06/0.4163, allocations: 5.125 kB / 379.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.387e-05/0.4163, allocations: 3.5 kB / 379.6 MB, free: 9.57 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.001694/0.418, allocations: 0.729 MB / 380.3 MB, free: 9.059 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.308e-05/0.4181, allocations: 12.47 kB / 380.4 MB, free: 9.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000154/0.4182, allocations: 48.31 kB / 380.4 MB, free: 9.035 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006697/0.4189, allocations: 313.7 kB / 380.7 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.861e-05/0.419, allocations: 25.38 kB / 380.7 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.607e-05/0.4191, allocations: 32.72 kB / 380.8 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008132/0.4199, allocations: 357.5 kB / 381.1 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.4199, allocations: 10.62 kB / 381.1 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.947e-05/0.42, allocations: 17.12 kB / 381.1 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.42, allocations: 7.531 kB / 381.1 MB, free: 8.715 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006585/0.4207, allocations: 270.4 kB / 381.4 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002225/0.4229, allocations: 1.408 MB / 382.8 MB, free: 7.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004901/0.4234, allocations: 226.3 kB / 383 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002743/0.4237, allocations: 110.7 kB / 383.1 MB, free: 7.844 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.725e-05/0.4237, allocations: 3.078 kB / 383.2 MB, free: 7.844 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.4238, allocations: 32.78 kB / 383.2 MB, free: 7.805 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.4238, allocations: 0 / 383.2 MB, free: 7.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001745/0.4255, allocations: 0.7062 MB / 383.9 MB, free: 7.336 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.92e-05/0.4256, allocations: 54.09 kB / 383.9 MB, free: 7.273 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004362/0.4261, allocations: 304.4 kB / 384.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.4261, allocations: 30.73 kB / 384.3 MB, free: 7.074 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.4262, allocations: 215 kB / 384.5 MB, free: 6.898 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.719e-05/0.4263, allocations: 82.08 kB / 384.6 MB, free: 6.836 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.4265, allocations: 50.89 kB / 384.6 MB, free: 6.801 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.4266, allocations: 338.7 kB / 384.9 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000253/0.4269, allocations: 82.09 kB / 385 MB, free: 6.449 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000293/0.4272, allocations: 120.4 kB / 385.1 MB, free: 6.379 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005039/0.4277, allocations: 199.6 kB / 385.3 MB, free: 6.273 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.4277, allocations: 1.344 kB / 385.3 MB, free: 6.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008906/0.4286, allocations: 360.4 kB / 385.7 MB, free: 6.113 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/0.4286, allocations: 5.938 kB / 385.7 MB, free: 6.113 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.4287, allocations: 7.156 kB / 385.7 MB, free: 6.109 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005731/0.4292, allocations: 116.6 kB / 385.8 MB, free: 6.059 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001961/0.4295, allocations: 36.2 kB / 385.8 MB, free: 6.055 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003773/0.4332, allocations: 4.97 MB / 390.8 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.4335, allocations: 32.33 kB / 390.8 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.773e-05/0.4335, allocations: 6.734 kB / 390.9 MB, free: 1.199 MB / 318.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.0002042/0.4338, allocations: 145.2 kB / 391 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.878e-05/0.4338, allocations: 37.44 kB / 391 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.846e-05/0.4339, allocations: 42.69 kB / 391.1 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.4339, allocations: 2.531 kB / 391.1 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.4339, allocations: 5.844 kB / 391.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.4339, allocations: 1.125 kB / 391.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005245/0.4345, allocations: 376.8 kB / 391.5 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.4345, allocations: 4.562 kB / 391.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.4346, allocations: 20.58 kB / 391.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003376/0.4349, allocations: 121.3 kB / 391.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.034e-05/0.435, allocations: 5.938 kB / 391.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00417/0.4392, allocations: 4.965 MB / 396.6 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.4392, allocations: 0.5625 kB / 396.6 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006861/0.4399, allocations: 410.2 kB / 397 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.44, allocations: 130.9 kB / 397.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.357e-05/0.4401, allocations: 1.891 kB / 397.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002351/0.4403, allocations: 19.62 kB / 397.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.4404, allocations: 28.23 kB / 397.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.4405, allocations: 8.406 kB / 397.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002557/0.4407, allocations: 223.1 kB / 397.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4407, allocations: 4 kB / 397.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007138/0.4414, allocations: 109.6 kB / 397.5 MB, free: 11.32 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.0001526/0.4416, allocations: 108.4 kB / 397.6 MB, free: 11.22 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.4426, allocations: 0.5742 MB / 398.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4426, allocations: 0 / 398.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005766/0.4432, allocations: 484.5 kB / 398.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004391/0.4437, allocations: 64.19 kB / 398.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.445, allocations: 0.6469 MB / 399.3 MB, free: 9.977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004907/0.4455, allocations: 0.7942 MB / 400.1 MB, free: 9.273 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001192/0.4456, allocations: 24.89 kB / 400.2 MB, free: 9.266 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.432e-05/0.4457, allocations: 19.09 kB / 400.2 MB, free: 9.258 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.4457, allocations: 0 / 400.2 MB, free: 9.258 MB / 334.1 MB Notification: Performance of Templates: time 0.01181/0.4575, allocations: 5.458 MB / 405.6 MB, free: 8.094 MB / 334.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)