Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.001089, allocations: 200.4 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.533/1.533, allocations: 229.5 MB / 247.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008173/0.0008174, allocations: 102.5 kB / 299.9 MB, free: 5.371 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003098/0.0003102, allocations: 8 kB / 360.6 MB, free: 8.516 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3146, allocations: 51.41 MB / 412 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.001631/0.3163, allocations: 1.404 MB / 413.4 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00113/0.3175, allocations: 0.8976 MB / 414.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00011/0.3176, allocations: 4 kB / 414.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001329/0.3177, allocations: 11.86 kB / 414.4 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.82e-05/0.3178, allocations: 11.86 kB / 414.4 MB, free: 23.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002758/0.3181, allocations: 65.56 kB / 414.4 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001615/0.3183, allocations: 139.6 kB / 414.6 MB, free: 23.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.3184, allocations: 34.28 kB / 414.6 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001755/0.3186, allocations: 57.33 kB / 414.7 MB, free: 23.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.205e-05/0.3187, allocations: 59.73 kB / 414.7 MB, free: 23.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.952e-05/0.3187, allocations: 4 kB / 414.7 MB, free: 23.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.776e-05/0.3188, allocations: 24.56 kB / 414.7 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.653e-05/0.3188, allocations: 27.89 kB / 414.8 MB, free: 23.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.461e-05/0.3189, allocations: 85.03 kB / 414.9 MB, free: 23.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001608/0.3191, allocations: 121.1 kB / 415 MB, free: 22.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3191, allocations: 4 kB / 415 MB, free: 22.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3191, allocations: 0 / 415 MB, free: 22.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.3191, allocations: 0 / 415 MB, free: 22.92 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005646/0.3197, allocations: 462.5 kB / 415.4 MB, free: 22.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.3197, allocations: 12.03 kB / 415.4 MB, free: 22.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002259/0.3199, allocations: 40.72 kB / 415.5 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001688/0.3201, allocations: 204.1 kB / 415.7 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.245e-05/0.3202, allocations: 8.375 kB / 415.7 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.28e-05/0.3202, allocations: 8.375 kB / 415.7 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004138/0.3206, allocations: 193.8 kB / 415.9 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.3206, allocations: 0 / 415.9 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.839e-05/0.3207, allocations: 0 / 415.9 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.3207, allocations: 4 kB / 415.9 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003159/0.321, allocations: 129.1 kB / 416 MB, free: 21.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006247/0.3216, allocations: 428.5 kB / 416.4 MB, free: 21.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005116/0.3222, allocations: 234.4 kB / 416.7 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002573/0.3224, allocations: 112.8 kB / 416.8 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.3225, allocations: 4 kB / 416.8 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004015/0.3229, allocations: 187.2 kB / 417 MB, free: 20.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.823e-06/0.3229, allocations: 0 / 417 MB, free: 20.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008859/0.3238, allocations: 413.7 kB / 417.4 MB, free: 20.35 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.3238, allocations: 67.33 kB / 417.4 MB, free: 20.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.805e-05/0.3239, allocations: 131.4 kB / 417.6 MB, free: 20.13 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.3239, allocations: 33.7 kB / 417.6 MB, free: 20.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.379e-05/0.324, allocations: 108.5 kB / 417.7 MB, free: 19.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.443e-05/0.324, allocations: 39.53 kB / 417.7 MB, free: 19.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.185e-06/0.324, allocations: 4 kB / 417.7 MB, free: 19.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.931e-05/0.3241, allocations: 330.8 kB / 418.1 MB, free: 19.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.3242, allocations: 47.97 kB / 418.1 MB, free: 19.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.3243, allocations: 119.4 kB / 418.2 MB, free: 19.42 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002432/0.3246, allocations: 180.4 kB / 418.4 MB, free: 19.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.3246, allocations: 4 kB / 418.4 MB, free: 19.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000326/0.3249, allocations: 213.4 kB / 418.6 MB, free: 18.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.325, allocations: 8 kB / 418.6 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.325, allocations: 4 kB / 418.6 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.325, allocations: 0 / 418.6 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001888/0.3252, allocations: 43.91 kB / 418.7 MB, free: 18.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.3252, allocations: 4 kB / 418.7 MB, free: 18.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.66e-05/0.3253, allocations: 27.84 kB / 418.7 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.3253, allocations: 7.938 kB / 418.7 MB, free: 18.9 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.signalExtrema2.t_max,signalExtrema2.t_max,$PRE.signalExtrema2.t_min,signalExtrema2.t_min,$PRE.signalExtrema1.t_max,signalExtrema1.t_max,$PRE.signalExtrema1.t_min,signalExtrema1.t_min,$whenCondition2,$whenCondition1,$PRE.signalExtrema1.y_min,signalExtrema1.y_min,$PRE.signalExtrema1.y_max,signalExtrema1.y_max,$PRE.signalExtrema2.y_min,signalExtrema2.y_min,$PRE.signalExtrema2.y_max,signalExtrema2.y_max) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.3255, allocations: 155.4 kB / 418.9 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.221e-05/0.3255, allocations: 11.81 kB / 418.9 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006359/0.3261, allocations: 318.4 kB / 419.2 MB, free: 18.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.3261, allocations: 0 / 419.2 MB, free: 18.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.3262, allocations: 0 / 419.2 MB, free: 18.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3262, allocations: 0 / 419.2 MB, free: 18.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007696/0.3269, allocations: 0.6114 MB / 419.8 MB, free: 17.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.327, allocations: 3.984 kB / 419.8 MB, free: 17.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.542e-05/0.3271, allocations: 16 kB / 419.8 MB, free: 17.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.3271, allocations: 7.984 kB / 419.8 MB, free: 17.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.3271, allocations: 4 kB / 419.8 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3271, allocations: 7.938 kB / 419.8 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3271, allocations: 0 / 419.8 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00085/0.328, allocations: 0.5263 MB / 420.4 MB, free: 17.15 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.511e-05/0.328, allocations: 85.05 kB / 420.4 MB, free: 17.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.675e-05/0.328, allocations: 8 kB / 420.4 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001743/0.3282, allocations: 47.95 kB / 420.5 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.667e-05/0.3283, allocations: 7.984 kB / 420.5 MB, free: 16.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.3283, allocations: 8 kB / 420.5 MB, free: 16.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.453e-05/0.3283, allocations: 106.2 kB / 420.6 MB, free: 16.88 MB / 298.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3283, allocations: 4 kB / 420.6 MB, free: 16.88 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002455/0.3286, allocations: 27.94 kB / 420.6 MB, free: 16.85 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (sine.phi) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_min,signalExtrema1.t_max,signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_min,signalExtrema2.t_max) * Number of discrete states: 8 (signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.t_min,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.t_min) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001153/0.3287, allocations: 115.2 kB / 420.8 MB, free: 16.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003921/0.3291, allocations: 195.6 kB / 420.9 MB, free: 16.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3291, allocations: 0 / 420.9 MB, free: 16.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002507/0.3294, allocations: 104.5 kB / 421.1 MB, free: 16.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002337/0.3296, allocations: 11.98 kB / 421.1 MB, free: 16.42 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007051/0.3303, allocations: 406 kB / 421.5 MB, free: 16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001491/0.3305, allocations: 0.7082 MB / 422.2 MB, free: 15.26 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.937e-05/0.3306, allocations: 12.66 kB / 422.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.771e-05/0.3306, allocations: 19.42 kB / 422.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3306, allocations: 0 / 422.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of Templates: time 0.003076/0.3337, allocations: 1.087 MB / 423.3 MB, free: 14.14 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)