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.001646/0.001646, allocations: 115.8 kB / 17.11 MB, free: 5.906 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.001777/0.001777, allocations: 193.3 kB / 18.05 MB, free: 4.98 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.598/1.598, allocations: 207.6 MB / 226.4 MB, free: 11.49 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.001558/0.001558, allocations: 48.39 kB / 335.4 MB, free: 13.88 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3568/0.3584, allocations: 49.11 MB / 384.5 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004656/0.363, allocations: 3.461 MB / 388 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.3644, allocations: 0.7982 MB / 388.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001748/0.3646, allocations: 9.438 kB / 388.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000206/0.3648, allocations: 66.67 kB / 388.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002371/0.365, allocations: 136.8 kB / 389 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003228/0.3654, allocations: 107.2 kB / 389.1 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005188/0.3659, allocations: 0.5059 MB / 389.6 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002054/0.3661, allocations: 100.2 kB / 389.7 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002479/0.3663, allocations: 190.8 kB / 389.9 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002757/0.3666, allocations: 206.5 kB / 390.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.661e-05/0.3667, allocations: 39.28 kB / 390.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.557e-05/0.3668, allocations: 39.75 kB / 390.2 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.508e-05/0.3668, allocations: 94.03 kB / 390.3 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002133/0.3671, allocations: 219 kB / 390.5 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006354/0.3677, allocations: 0.4896 MB / 391 MB, free: 4.105 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3677, allocations: 3.938 kB / 391 MB, free: 4.102 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3677, allocations: 1.156 kB / 391 MB, free: 4.102 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.3677, allocations: 0 / 391 MB, free: 4.102 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.001146/0.3689, allocations: 0.7344 MB / 391.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.3689, allocations: 9.062 kB / 391.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.692e-05/0.369, allocations: 53.16 kB / 391.8 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004617/0.3695, allocations: 316.2 kB / 392.1 MB, free: 3.219 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.784e-05/0.3695, allocations: 22.12 kB / 392.1 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.389e-05/0.3695, allocations: 33.06 kB / 392.1 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000576/0.3701, allocations: 350.3 kB / 392.5 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.3701, allocations: 8.547 kB / 392.5 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.297e-05/0.3702, allocations: 15.41 kB / 392.5 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.3702, allocations: 7.625 kB / 392.5 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005326/0.3707, allocations: 266.1 kB / 392.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/0.3726, allocations: 1.413 MB / 394.2 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003817/0.3729, allocations: 205.7 kB / 394.4 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000216/0.3732, allocations: 100.2 kB / 394.5 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.45e-05/0.3732, allocations: 3 kB / 394.5 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/0.3732, allocations: 37 kB / 394.5 MB, free: 1.699 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.933e-06/0.3732, allocations: 1.188 kB / 394.5 MB, free: 1.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001424/0.3746, allocations: 0.6956 MB / 395.2 MB, free: 1.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.309e-05/0.3747, allocations: 57.97 kB / 395.3 MB, free: 1.164 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003212/0.375, allocations: 305.5 kB / 395.6 MB, free: 1 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.855e-05/0.375, allocations: 30.8 kB / 395.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.3751, allocations: 215.8 kB / 395.8 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.832e-05/0.3752, allocations: 75.11 kB / 395.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.707e-05/0.3753, allocations: 55.3 kB / 395.9 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.7e-05/0.3754, allocations: 339.7 kB / 396.3 MB, free: 372 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/0.3755, allocations: 77.39 kB / 396.3 MB, free: 348 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001972/0.3757, allocations: 119.9 kB / 396.5 MB, free: 276 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003596/0.3761, allocations: 210.8 kB / 396.7 MB, free: 152 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3761, allocations: 0.6562 kB / 396.7 MB, free: 152 kB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007033/0.3768, allocations: 355.4 kB / 397 MB, free: 15.97 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.3768, allocations: 5.5 kB / 397 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.3768, allocations: 1.062 kB / 397 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004838/0.3773, allocations: 117.7 kB / 397.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002001/0.3775, allocations: 32.47 kB / 397.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004926/0.3824, allocations: 4.976 MB / 402.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003104/0.3827, allocations: 27.12 kB / 402.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.031e-05/0.3828, allocations: 6.812 kB / 402.2 MB, free: 11.02 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.0002643/0.383, allocations: 150.2 kB / 402.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.158e-05/0.3831, allocations: 36.47 kB / 402.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.659e-05/0.3832, allocations: 43.23 kB / 402.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3832, allocations: 2.156 kB / 402.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3832, allocations: 1.859 kB / 402.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3832, allocations: 0.8438 kB / 402.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005845/0.3838, allocations: 378.9 kB / 402.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3838, allocations: 0 / 402.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001305/0.3839, allocations: 24.7 kB / 402.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004174/0.3844, allocations: 117.2 kB / 402.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.3844, allocations: 11.08 kB / 402.9 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004645/0.389, allocations: 4.957 MB / 407.9 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.389, allocations: 0.7969 kB / 407.9 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007309/0.3898, allocations: 397 kB / 408.3 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001825/0.3899, allocations: 128.9 kB / 408.4 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.831e-05/0.39, allocations: 7.328 kB / 408.4 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002429/0.3902, allocations: 21.06 kB / 408.4 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.3903, allocations: 22.22 kB / 408.4 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-05/0.3904, allocations: 14.12 kB / 408.5 MB, free: 5.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002799/0.3906, allocations: 220.4 kB / 408.7 MB, free: 5.125 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3906, allocations: 0 / 408.7 MB, free: 5.125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007735/0.3914, allocations: 122.5 kB / 408.8 MB, free: 5.094 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.0001807/0.3916, allocations: 111.8 kB / 408.9 MB, free: 4.996 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.3928, allocations: 0.5575 MB / 409.5 MB, free: 4.578 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3928, allocations: 0 / 409.5 MB, free: 4.578 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006556/0.3935, allocations: 479.2 kB / 409.9 MB, free: 4.184 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000477/0.394, allocations: 63.52 kB / 410 MB, free: 4.152 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001461/0.3954, allocations: 0.6409 MB / 410.6 MB, free: 3.758 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005152/0.3959, allocations: 0.794 MB / 411.4 MB, free: 3.059 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001169/0.3961, allocations: 27.19 kB / 411.4 MB, free: 3.047 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.565e-05/0.3961, allocations: 20.16 kB / 411.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3961, allocations: 0 / 411.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of Templates: time 0.01212/0.4082, allocations: 5.509 MB / 417 MB, free: 0.6133 MB / 334.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)