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.01449/0.01449, allocations: 101.8 kB / 15.73 MB, free: 5.547 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.002695/0.002695, allocations: 191.6 kB / 16.67 MB, free: 5.477 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.791/1.791, allocations: 205.1 MB / 222.5 MB, free: 12.21 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.001182/0.001182, allocations: 52.25 kB / 326.6 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1115, allocations: 46.61 MB / 373.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.00469/0.1163, allocations: 3.442 MB / 376.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00147/0.1178, allocations: 0.7952 MB / 377.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001834/0.118, allocations: 4 kB / 377.4 MB, free: 296 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002214/0.1182, allocations: 71.3 kB / 377.5 MB, free: 224 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002449/0.1185, allocations: 130.8 kB / 377.6 MB, free: 92 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2466/0.3651, allocations: 101.7 kB / 377.7 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001027/0.3662, allocations: 0.5063 MB / 378.2 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003429/0.3665, allocations: 142.4 kB / 378.3 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003052/0.3668, allocations: 188.2 kB / 378.5 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002758/0.3671, allocations: 205 kB / 378.7 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.562e-05/0.3672, allocations: 39.88 kB / 378.8 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.287e-05/0.3673, allocations: 38.97 kB / 378.8 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.85e-05/0.3674, allocations: 94.06 kB / 378.9 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002252/0.3676, allocations: 221.8 kB / 379.1 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000583/0.3682, allocations: 495.4 kB / 379.6 MB, free: 9.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3682, allocations: 2.141 kB / 379.6 MB, free: 9.574 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3682, allocations: 0 / 379.6 MB, free: 9.574 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.3682, allocations: 3.469 kB / 379.6 MB, free: 9.574 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.001106/0.3693, allocations: 0.7159 MB / 380.3 MB, free: 9.078 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.3694, allocations: 10.34 kB / 380.3 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.3695, allocations: 50.75 kB / 380.4 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004701/0.37, allocations: 315.5 kB / 380.7 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.545e-05/0.37, allocations: 23.59 kB / 380.7 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.915e-05/0.3701, allocations: 33.34 kB / 380.7 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006945/0.3708, allocations: 354.4 kB / 381.1 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.3709, allocations: 7.875 kB / 381.1 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.858e-05/0.3709, allocations: 15.03 kB / 381.1 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.3709, allocations: 11.38 kB / 381.1 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005829/0.3715, allocations: 265.1 kB / 381.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001962/0.3735, allocations: 1.412 MB / 382.8 MB, free: 7.953 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004582/0.374, allocations: 216.9 kB / 383 MB, free: 7.926 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002217/0.3742, allocations: 114.6 kB / 383.1 MB, free: 7.879 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.712e-05/0.3742, allocations: 3.062 kB / 383.1 MB, free: 7.879 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.3743, allocations: 36 kB / 383.2 MB, free: 7.84 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.3743, allocations: 0 / 383.2 MB, free: 7.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001474/0.3758, allocations: 0.7032 MB / 383.9 MB, free: 7.371 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.649e-05/0.3758, allocations: 55.34 kB / 383.9 MB, free: 7.309 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/0.3761, allocations: 307.7 kB / 384.2 MB, free: 7.141 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.3761, allocations: 31.23 kB / 384.2 MB, free: 7.105 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.3763, allocations: 209.1 kB / 384.4 MB, free: 6.934 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.528e-05/0.3763, allocations: 72.52 kB / 384.5 MB, free: 6.879 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.825e-05/0.3764, allocations: 54.53 kB / 384.6 MB, free: 6.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.711e-05/0.3765, allocations: 338.6 kB / 384.9 MB, free: 6.516 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.3767, allocations: 85.34 kB / 385 MB, free: 6.488 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002145/0.3769, allocations: 118.5 kB / 385.1 MB, free: 6.422 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003747/0.3773, allocations: 205.1 kB / 385.3 MB, free: 6.312 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3773, allocations: 1.469 kB / 385.3 MB, free: 6.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007104/0.378, allocations: 352 kB / 385.6 MB, free: 6.156 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.378, allocations: 5.688 kB / 385.7 MB, free: 6.156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.3781, allocations: 2.094 kB / 385.7 MB, free: 6.156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004103/0.3785, allocations: 117.6 kB / 385.8 MB, free: 6.105 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.3787, allocations: 33.25 kB / 385.8 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003519/0.3822, allocations: 4.972 MB / 390.8 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002831/0.3825, allocations: 27.34 kB / 390.8 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.621e-05/0.3825, allocations: 7.5 kB / 390.8 MB, free: 1.25 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.0002091/0.3827, allocations: 144.6 kB / 391 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.67e-05/0.3828, allocations: 41.64 kB / 391 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.098e-05/0.3829, allocations: 40.56 kB / 391 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.572e-05/0.383, allocations: 10.7 kB / 391 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.383, allocations: 0.875 kB / 391 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.383, allocations: 2.688 kB / 391 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005922/0.3836, allocations: 374.4 kB / 391.4 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.3836, allocations: 3.938 kB / 391.4 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/0.3837, allocations: 21.09 kB / 391.4 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003668/0.3841, allocations: 120.6 kB / 391.6 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.147e-05/0.3841, allocations: 10.14 kB / 391.6 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003908/0.388, allocations: 4.961 MB / 396.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.3881, allocations: 0 / 396.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008093/0.3889, allocations: 400.3 kB / 396.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001851/0.3891, allocations: 132.7 kB / 397 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.734e-05/0.3891, allocations: 2.203 kB / 397 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002457/0.3894, allocations: 22.69 kB / 397.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.3895, allocations: 31.59 kB / 397.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.3895, allocations: 5.047 kB / 397.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003322/0.3899, allocations: 221.7 kB / 397.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3899, allocations: 0 / 397.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007599/0.3907, allocations: 114.8 kB / 397.4 MB, free: 11.37 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.0001427/0.3908, allocations: 108.2 kB / 397.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009819/0.3918, allocations: 0.5804 MB / 398.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.3918, allocations: 1.219 kB / 398.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005745/0.3924, allocations: 476 kB / 398.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004326/0.3928, allocations: 63.94 kB / 398.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.3941, allocations: 0.6256 MB / 399.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005303/0.3947, allocations: 0.7931 MB / 400.1 MB, free: 9.344 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001369/0.3948, allocations: 28.16 kB / 400.1 MB, free: 9.332 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.772e-05/0.3949, allocations: 24.38 kB / 400.1 MB, free: 9.32 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3949, allocations: 0 / 400.1 MB, free: 9.32 MB / 334.1 MB Notification: Performance of Templates: time 0.01144/0.4064, allocations: 5.452 MB / 405.6 MB, free: 8.16 MB / 334.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)