Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001258/0.001258, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001457/0.001457, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 68.19 kB / 306.4 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1112, allocations: 50.53 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003371/0.1146, allocations: 1.778 MB / 358.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.1159, allocations: 0.6661 MB / 359.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.116, allocations: 0 / 359.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.1162, allocations: 11.88 kB / 359.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.187e-05/0.1163, allocations: 23.84 kB / 359.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.1166, allocations: 67.88 kB / 359.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001857/0.1168, allocations: 143.6 kB / 359.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.1169, allocations: 33.42 kB / 359.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.1171, allocations: 59.77 kB / 359.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.1172, allocations: 71.67 kB / 359.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.168e-05/0.1172, allocations: 4 kB / 359.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.225e-05/0.1173, allocations: 12 kB / 359.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.865e-05/0.1174, allocations: 35.89 kB / 359.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.195e-05/0.1174, allocations: 63.7 kB / 359.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001919/0.1176, allocations: 131.8 kB / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1176, allocations: 0 / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1177, allocations: 0 / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.1177, allocations: 0 / 360 MB, free: 11.32 MB / 302.1 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.0006973/0.1184, allocations: 0.4888 MB / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.1184, allocations: 8.031 kB / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.444e-05/0.1185, allocations: 42.73 kB / 360.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002439/0.1187, allocations: 24.83 kB / 360.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002228/0.119, allocations: 220.2 kB / 360.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.647e-05/0.119, allocations: 12.31 kB / 360.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.327e-05/0.119, allocations: 15.94 kB / 360.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004438/0.1195, allocations: 161.5 kB / 360.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.1195, allocations: 0 / 360.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/0.1195, allocations: 7.984 kB / 360.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.1196, allocations: 4 kB / 360.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003496/0.1199, allocations: 99.91 kB / 361 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006864/0.1206, allocations: 420.3 kB / 361.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005333/0.1211, allocations: 190.4 kB / 361.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002582/0.1214, allocations: 92.78 kB / 361.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.1214, allocations: 11.98 kB / 361.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004324/0.1219, allocations: 169.5 kB / 361.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.754e-06/0.1219, allocations: 7.938 kB / 361.9 MB, free: 9.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009193/0.1228, allocations: 345.4 kB / 362.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.21e-05/0.1229, allocations: 59.34 kB / 362.3 MB, free: 8.781 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.123, allocations: 149.7 kB / 362.5 MB, free: 8.625 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/0.123, allocations: 33.7 kB / 362.5 MB, free: 8.586 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.835e-05/0.1231, allocations: 100.5 kB / 362.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.417e-05/0.1231, allocations: 39.45 kB / 362.6 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.703e-05/0.1232, allocations: 49.64 kB / 362.7 MB, free: 8.391 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.1234, allocations: 322.8 kB / 363 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.1235, allocations: 51.97 kB / 363 MB, free: 8.016 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.1237, allocations: 114.2 kB / 363.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002717/0.1239, allocations: 172.4 kB / 363.3 MB, free: 7.676 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.124, allocations: 0 / 363.3 MB, free: 7.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003521/0.1243, allocations: 205.2 kB / 363.5 MB, free: 7.469 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.1243, allocations: 4 kB / 363.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.1243, allocations: 12.28 kB / 363.5 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.258e-05/0.1244, allocations: 7.938 kB / 363.5 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.1245, allocations: 39.84 kB / 363.6 MB, free: 7.406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.1246, allocations: 7.938 kB / 363.6 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.379e-05/0.1247, allocations: 19.84 kB / 363.6 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.1247, allocations: 12 kB / 363.6 MB, free: 7.367 MB / 302.1 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 (signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,$whenCondition2,$whenCondition1,signalExtrema2.y_max,$PRE.signalExtrema2.y_max,signalExtrema2.y_min,$PRE.signalExtrema2.y_min,signalExtrema1.y_max,$PRE.signalExtrema1.y_max,signalExtrema1.y_min,$PRE.signalExtrema1.y_min) * 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.0001112/0.1248, allocations: 139.4 kB / 363.8 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.465e-05/0.1248, allocations: 11.91 kB / 363.8 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006719/0.1255, allocations: 278.2 kB / 364 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.716e-06/0.1255, allocations: 0 / 364 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.1255, allocations: 0 / 364 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1255, allocations: 4 kB / 364 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008859/0.1264, allocations: 0.5746 MB / 364.6 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1264, allocations: 0 / 364.6 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.1266, allocations: 19.98 kB / 364.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.1266, allocations: 4 kB / 364.6 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.1266, allocations: 4 kB / 364.6 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.063e-06/0.1266, allocations: 0 / 364.6 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1266, allocations: 3.984 kB / 364.7 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009635/0.1276, allocations: 478.9 kB / 365.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.031e-05/0.1276, allocations: 85.05 kB / 365.2 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.835e-05/0.1277, allocations: 8 kB / 365.2 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.1279, allocations: 32.02 kB / 365.2 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.872e-05/0.1279, allocations: 7.984 kB / 365.2 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.1279, allocations: 8 kB / 365.3 MB, free: 5.625 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.033e-05/0.128, allocations: 110.4 kB / 365.4 MB, free: 5.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.128, allocations: 3.938 kB / 365.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002757/0.1283, allocations: 35.84 kB / 365.4 MB, free: 5.48 MB / 302.1 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.00117/0.1295, allocations: 0.9803 MB / 366.4 MB, free: 4.473 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004277/0.1299, allocations: 163.8 kB / 366.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1299, allocations: 0 / 366.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002737/0.1302, allocations: 96.48 kB / 366.6 MB, free: 4.219 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.1305, allocations: 10.81 kB / 366.6 MB, free: 4.211 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.1328, allocations: 1.975 MB / 368.6 MB, free: 2.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.133, allocations: 0.7087 MB / 369.3 MB, free: 1.355 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.622e-05/0.1331, allocations: 13.08 kB / 369.3 MB, free: 1.344 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.803e-05/0.1332, allocations: 39.42 kB / 369.4 MB, free: 1.305 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1332, allocations: 0 / 369.4 MB, free: 1.305 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1797/0.3129, allocations: 2.483 MB / 371.9 MB, free: 19.7 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002035/0.3131, allocations: 205.7 kB / 372.1 MB, free: 19.44 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.803/2.116, allocations: 0 / 372.1 MB, free: 19.44 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)