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.001252/0.001252, allocations: 110.1 kB / 17.06 MB, free: 6.016 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.001576/0.001576, allocations: 191 kB / 18 MB, free: 5.102 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.571/1.571, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001446/0.001446, allocations: 51.92 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1316, allocations: 46.61 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005434/0.1371, allocations: 3.445 MB / 377.9 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.1389, allocations: 0.803 MB / 378.7 MB, free: 308 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004313/0.1394, allocations: 4 kB / 378.7 MB, free: 304 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003081/0.1398, allocations: 71.28 kB / 378.8 MB, free: 232 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003142/0.1401, allocations: 130.8 kB / 378.9 MB, free: 100 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2446/0.3846, allocations: 104.5 kB / 379 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00107/0.3858, allocations: 0.5059 MB / 379.5 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000343/0.3861, allocations: 133.9 kB / 379.7 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000445/0.3866, allocations: 194.3 kB / 379.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003602/0.387, allocations: 203.1 kB / 380.1 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.399e-05/0.3871, allocations: 40 kB / 380.1 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.417e-05/0.3872, allocations: 38.91 kB / 380.1 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.3873, allocations: 92.41 kB / 380.2 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000307/0.3876, allocations: 220.9 kB / 380.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009672/0.3886, allocations: 499.7 kB / 380.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.3886, allocations: 0 / 380.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3886, allocations: 5.219 kB / 380.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.3886, allocations: 0 / 380.9 MB, free: 10.18 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.001343/0.39, allocations: 0.728 MB / 381.7 MB, free: 9.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.39, allocations: 9.656 kB / 381.7 MB, free: 9.672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.3902, allocations: 49.44 kB / 381.7 MB, free: 9.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005513/0.3907, allocations: 318 kB / 382 MB, free: 9.414 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.57e-05/0.3908, allocations: 22.25 kB / 382 MB, free: 9.414 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.773e-05/0.3909, allocations: 33.09 kB / 382.1 MB, free: 9.414 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007088/0.3916, allocations: 357.3 kB / 382.4 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.3916, allocations: 5 kB / 382.4 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.746e-05/0.3917, allocations: 15 kB / 382.5 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.3917, allocations: 11.94 kB / 382.5 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005761/0.3923, allocations: 266.8 kB / 382.7 MB, free: 9.289 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002089/0.3943, allocations: 1.412 MB / 384.1 MB, free: 8.281 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004649/0.3948, allocations: 230.8 kB / 384.4 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002195/0.3951, allocations: 108.3 kB / 384.5 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.3951, allocations: 3.281 kB / 384.5 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.3951, allocations: 32.39 kB / 384.5 MB, free: 8.098 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.663e-06/0.3951, allocations: 1.594 kB / 384.5 MB, free: 8.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001639/0.3968, allocations: 0.7027 MB / 385.2 MB, free: 7.629 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.3968, allocations: 55.33 kB / 385.3 MB, free: 7.566 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004088/0.3973, allocations: 309.1 kB / 385.6 MB, free: 7.398 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.3973, allocations: 31.33 kB / 385.6 MB, free: 7.363 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.3975, allocations: 212.2 kB / 385.8 MB, free: 7.188 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.738e-05/0.3975, allocations: 80 kB / 385.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.3976, allocations: 50.97 kB / 385.9 MB, free: 7.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.3978, allocations: 338.6 kB / 386.3 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002097/0.398, allocations: 81.92 kB / 386.3 MB, free: 6.738 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002448/0.3982, allocations: 122.2 kB / 386.5 MB, free: 6.668 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000435/0.3987, allocations: 205 kB / 386.7 MB, free: 6.562 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3987, allocations: 0 / 386.7 MB, free: 6.562 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007972/0.3995, allocations: 360.3 kB / 387 MB, free: 6.398 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.918e-05/0.3996, allocations: 6.156 kB / 387 MB, free: 6.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.3996, allocations: 1.188 kB / 387 MB, free: 6.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005257/0.4001, allocations: 118.2 kB / 387.1 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002155/0.4003, allocations: 34.73 kB / 387.2 MB, free: 6.344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003653/0.404, allocations: 4.973 MB / 392.1 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003384/0.4044, allocations: 33.62 kB / 392.2 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.829e-05/0.4044, allocations: 6.25 kB / 392.2 MB, free: 1.488 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.0002353/0.4046, allocations: 146.5 kB / 392.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.199e-05/0.4047, allocations: 35.56 kB / 392.4 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.938e-05/0.4048, allocations: 42.88 kB / 392.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.4048, allocations: 2.281 kB / 392.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.4048, allocations: 1.891 kB / 392.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.4048, allocations: 4.688 kB / 392.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005621/0.4054, allocations: 372.3 kB / 392.8 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.4054, allocations: 6.484 kB / 392.8 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001226/0.4056, allocations: 19.77 kB / 392.8 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003844/0.4059, allocations: 121.2 kB / 392.9 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.406, allocations: 9.25 kB / 392.9 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003996/0.41, allocations: 4.965 MB / 397.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.41, allocations: 0.8438 kB / 397.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007954/0.4108, allocations: 409.3 kB / 398.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000192/0.411, allocations: 129.6 kB / 398.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.584e-05/0.4111, allocations: 0.75 kB / 398.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002389/0.4113, allocations: 21.06 kB / 398.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.4114, allocations: 31.67 kB / 398.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/0.4115, allocations: 4.719 kB / 398.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000355/0.4118, allocations: 221.5 kB / 398.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4118, allocations: 4 kB / 398.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000888/0.4127, allocations: 111 kB / 398.8 MB, free: 11.59 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.0001775/0.4129, allocations: 107.3 kB / 398.9 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.4141, allocations: 0.5743 MB / 399.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.4141, allocations: 0.875 kB / 399.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000603/0.4147, allocations: 486.1 kB / 400 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004587/0.4152, allocations: 65.16 kB / 400 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.4165, allocations: 0.6441 MB / 400.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/0.4169, allocations: 0.7928 MB / 401.5 MB, free: 9.539 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001229/0.417, allocations: 22.88 kB / 401.5 MB, free: 9.531 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.95e-05/0.4171, allocations: 23.75 kB / 401.5 MB, free: 9.52 MB / 334.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4171, allocations: 1.156 kB / 401.5 MB, free: 9.52 MB / 334.1 MB Notification: Performance of Templates: time 0.0123/0.4294, allocations: 5.454 MB / 407 MB, free: 8.328 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)