Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.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.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009784/0.0009781, allocations: 102.2 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001199/0.001199, allocations: 191.7 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002754/0.0002756, allocations: 4 kB / 306.8 MB, free: 1.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1131, allocations: 51.5 MB / 358.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.002683/0.1158, allocations: 1.657 MB / 360 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.1171, allocations: 0.6704 MB / 360.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.569e-05/0.1172, allocations: 7.938 kB / 360.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.714e-05/0.1173, allocations: 15.84 kB / 360.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001493/0.1174, allocations: 35.66 kB / 360.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003209/0.1177, allocations: 95.8 kB / 360.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003124/0.1181, allocations: 299.2 kB / 361.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.1183, allocations: 48.77 kB / 361.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000268/0.1185, allocations: 127.6 kB / 361.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001887/0.1187, allocations: 151.5 kB / 361.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.255e-05/0.1188, allocations: 19.94 kB / 361.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.45e-05/0.1189, allocations: 16 kB / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.704e-05/0.1189, allocations: 51.86 kB / 361.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.957e-05/0.119, allocations: 69.56 kB / 361.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.1193, allocations: 195.8 kB / 361.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.1193, allocations: 0 / 361.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.1193, allocations: 0 / 361.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1193, allocations: 0 / 361.7 MB, free: 10.33 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001494/0.1208, allocations: 0.7195 MB / 362.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.734e-05/0.1209, allocations: 8.031 kB / 362.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.111e-05/0.121, allocations: 54.53 kB / 362.5 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003219/0.1213, allocations: 63.69 kB / 362.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001544/0.1215, allocations: 210.4 kB / 362.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.48e-05/0.1215, allocations: 16 kB / 362.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.053e-05/0.1216, allocations: 31.94 kB / 362.8 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007789/0.1224, allocations: 379 kB / 363.2 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.1224, allocations: 0 / 363.2 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.126e-05/0.1224, allocations: 7.984 kB / 363.2 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.1224, allocations: 8 kB / 363.2 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007775/0.1232, allocations: 294.5 kB / 363.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.1244, allocations: 0.7189 MB / 364.2 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008633/0.1252, allocations: 408.8 kB / 364.6 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005154/0.1258, allocations: 233.5 kB / 364.9 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.1258, allocations: 4 kB / 364.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000886/0.1267, allocations: 419.4 kB / 365.3 MB, free: 6.582 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.964e-06/0.1267, allocations: 0 / 365.3 MB, free: 6.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.001852/0.1286, allocations: 0.8322 MB / 366.1 MB, free: 5.742 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/0.1286, allocations: 67.39 kB / 366.2 MB, free: 5.664 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001713/0.1288, allocations: 196.1 kB / 366.4 MB, free: 5.461 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.277e-05/0.1289, allocations: 37.7 kB / 366.4 MB, free: 5.418 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.504e-05/0.129, allocations: 132.9 kB / 366.5 MB, free: 5.281 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.193e-05/0.1291, allocations: 110.6 kB / 366.6 MB, free: 5.172 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.471e-05/0.1291, allocations: 8 kB / 366.6 MB, free: 5.164 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1292, allocations: 342.8 kB / 367 MB, free: 4.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004014/0.1296, allocations: 173 kB / 367.1 MB, free: 4.648 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004404/0.1301, allocations: 257.3 kB / 367.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004387/0.1305, allocations: 254.2 kB / 367.6 MB, free: 4.109 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.1305, allocations: 7.953 kB / 367.6 MB, free: 4.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001068/0.1316, allocations: 0.5995 MB / 368.2 MB, free: 3.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.257e-05/0.1317, allocations: 89.31 kB / 368.3 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.1317, allocations: 11.94 kB / 368.3 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.1317, allocations: 4 kB / 368.3 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000347/0.1321, allocations: 83.88 kB / 368.4 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.1321, allocations: 4 kB / 368.4 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003312/0.1324, allocations: 79.64 kB / 368.5 MB, free: 3.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.571e-05/0.1325, allocations: 20 kB / 368.5 MB, free: 3.176 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.signalExtrema3.t_min,signalExtrema3.t_min,$PRE.signalExtrema3.t_max,signalExtrema3.t_max,$PRE.signalExtrema2.t_min,signalExtrema2.t_min,$PRE.signalExtrema2.t_max,signalExtrema2.t_max,$PRE.signalExtrema1.t_min,signalExtrema1.t_min,$PRE.signalExtrema1.t_max,signalExtrema1.t_max,$whenCondition5,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$PRE.sawTooth.T_start,sawTooth.T_start,$PRE.sawTooth.count,sawTooth.count,$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,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$PRE.sawTooth1.T_start,sawTooth1.T_start,$PRE.sawTooth1.count,sawTooth1.count,$PRE.signalExtrema3.y_min,signalExtrema3.y_min,$PRE.signalExtrema3.y_max,signalExtrema3.y_max) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001765/0.1327, allocations: 169.6 kB / 368.7 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.229e-05/0.1327, allocations: 35.61 kB / 368.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.993e-05/0.1328, allocations: 38.98 kB / 368.8 MB, free: 2.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.1328, allocations: 4 kB / 368.8 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.1329, allocations: 0 / 368.8 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.1329, allocations: 3.984 kB / 368.8 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000337/0.1332, allocations: 349.1 kB / 369.1 MB, free: 2.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1332, allocations: 0 / 369.1 MB, free: 2.531 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002688/0.1335, allocations: 55.84 kB / 369.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.1335, allocations: 8 kB / 369.2 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.519e-05/0.1336, allocations: 15.97 kB / 369.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.1336, allocations: 0 / 369.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1336, allocations: 4 kB / 369.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/0.1355, allocations: 0.9268 MB / 370.1 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.557e-05/0.1355, allocations: 100.8 kB / 370.2 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.91e-05/0.1356, allocations: 27.92 kB / 370.3 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003359/0.1359, allocations: 79.92 kB / 370.3 MB, free: 1.281 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.1361, allocations: 51.92 kB / 370.4 MB, free: 1.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.936e-05/0.1362, allocations: 23.97 kB / 370.4 MB, free: 1.207 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001324/0.1363, allocations: 131.3 kB / 370.5 MB, free: 1.078 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.1363, allocations: 4 kB / 370.5 MB, free: 1.074 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00032/0.1366, allocations: 83.98 kB / 370.6 MB, free: 0.9922 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (signalExtrema3.x,signalExtrema1.x,signalExtrema2.x) * Number of discrete variables: 28 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,sawTooth1.T_start,sawTooth1.count,signalExtrema3.y_min,signalExtrema3.y_max,signalExtrema3.t_min,signalExtrema3.t_max,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,sawTooth.T_start,sawTooth.count,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: 18 (sawTooth.count,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.y_min,signalExtrema1.t_min,signalExtrema1.u,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.y_min,signalExtrema2.t_min,signalExtrema2.u,pulse.count,sawTooth1.count,signalExtrema3.y_max,signalExtrema3.t_max,signalExtrema3.y_min,signalExtrema3.t_min,signalExtrema3.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2614/0.398, allocations: 1.483 MB / 372.1 MB, free: 19.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001404/0.3995, allocations: 0.6467 MB / 372.8 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3995, allocations: 0 / 372.8 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007203/0.4002, allocations: 296.7 kB / 373 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003927/0.4006, allocations: 47.84 kB / 373.1 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003703/0.4044, allocations: 1.888 MB / 375 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.4046, allocations: 0.7516 MB / 375.7 MB, free: 18.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001588/0.4048, allocations: 32.95 kB / 375.8 MB, free: 18.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.4049, allocations: 85.31 kB / 375.8 MB, free: 18.04 MB / 302.1 MB Notification: Performance of SimCode: time 1.153e-06/0.4049, allocations: 1.125 kB / 375.8 MB, free: 18.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02049/0.4254, allocations: 5.725 MB / 381.6 MB, free: 17.46 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001837/0.4257, allocations: 201.5 kB / 381.8 MB, free: 17.22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.031/2.457, allocations: 3.094 kB / 381.8 MB, free: 17.22 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1)