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.001054/0.001054, allocations: 96.78 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001094/0.001095, allocations: 208.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.3 MB / 245.9 MB, free: 12.03 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000269/0.0002691, allocations: 4 kB / 306.7 MB, free: 1.484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1282, allocations: 51.49 MB / 358.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.002409/0.1306, allocations: 1.634 MB / 359.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.1317, allocations: 0.6705 MB / 360.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.073e-05/0.1318, allocations: 7.938 kB / 360.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.251e-05/0.1318, allocations: 11.86 kB / 360.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000156/0.132, allocations: 47.84 kB / 360.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000321/0.1323, allocations: 95.8 kB / 360.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002597/0.1326, allocations: 191.6 kB / 360.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.1328, allocations: 56.77 kB / 360.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003622/0.1331, allocations: 127.6 kB / 361 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002695/0.1334, allocations: 147.4 kB / 361.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.503e-05/0.1335, allocations: 16 kB / 361.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.184e-05/0.1335, allocations: 16 kB / 361.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.749e-05/0.1336, allocations: 55.8 kB / 361.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.931e-05/0.1337, allocations: 69.56 kB / 361.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002471/0.134, allocations: 191.8 kB / 361.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.134, allocations: 0 / 361.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.134, allocations: 4 kB / 361.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.134, allocations: 0 / 361.5 MB, free: 10.64 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.001729/0.1357, allocations: 0.7157 MB / 362.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.1358, allocations: 12.03 kB / 362.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.693e-05/0.1359, allocations: 46.55 kB / 362.3 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003706/0.1362, allocations: 71.67 kB / 362.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002301/0.1365, allocations: 202.4 kB / 362.6 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.601e-05/0.1365, allocations: 23.94 kB / 362.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.918e-05/0.1366, allocations: 28 kB / 362.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009675/0.1376, allocations: 386.9 kB / 363 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.1376, allocations: 0 / 363 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.332e-05/0.1376, allocations: 4 kB / 363 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.1377, allocations: 4 kB / 363 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008357/0.1385, allocations: 291.8 kB / 363.3 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.1398, allocations: 0.7266 MB / 364 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009441/0.1407, allocations: 410.8 kB / 364.4 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.1408, allocations: 4 kB / 364.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009029/0.1417, allocations: 419.1 kB / 364.8 MB, free: 7.125 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 4.038e-06/0.1417, allocations: 3.984 kB / 364.8 MB, free: 7.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.001944/0.1436, allocations: 0.8364 MB / 365.7 MB, free: 6.277 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.891e-05/0.1437, allocations: 75.33 kB / 365.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001666/0.1439, allocations: 184.1 kB / 365.9 MB, free: 6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.48e-05/0.1439, allocations: 45.7 kB / 366 MB, free: 5.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.288e-05/0.144, allocations: 132.9 kB / 366.1 MB, free: 5.812 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.483e-05/0.1441, allocations: 106.6 kB / 366.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.372e-05/0.1442, allocations: 12 kB / 366.2 MB, free: 5.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.1443, allocations: 338.8 kB / 366.5 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004191/0.1447, allocations: 173 kB / 366.7 MB, free: 5.184 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004756/0.1452, allocations: 249.4 kB / 366.9 MB, free: 4.914 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004813/0.1457, allocations: 266.2 kB / 367.2 MB, free: 4.641 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.1457, allocations: 3.953 kB / 367.2 MB, free: 4.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001126/0.1469, allocations: 0.5967 MB / 367.8 MB, free: 4.016 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.022e-05/0.1469, allocations: 85.11 kB / 367.9 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.147, allocations: 0 / 367.9 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.147, allocations: 12.09 kB / 367.9 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003574/0.1473, allocations: 87.81 kB / 368 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.1474, allocations: 4 kB / 368 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003516/0.1477, allocations: 79.64 kB / 368.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.548e-05/0.1478, allocations: 19.98 kB / 368.1 MB, free: 3.715 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.0001889/0.148, allocations: 165.7 kB / 368.2 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.634e-05/0.148, allocations: 35.66 kB / 368.3 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.39e-05/0.1481, allocations: 31 kB / 368.3 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-06/0.1481, allocations: 8 kB / 368.3 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.1481, allocations: 0 / 368.3 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.1481, allocations: 3.984 kB / 368.3 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000354/0.1485, allocations: 341.2 kB / 368.7 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1485, allocations: 3.938 kB / 368.7 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002701/0.1488, allocations: 55.91 kB / 368.7 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.1488, allocations: 0 / 368.7 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.769e-05/0.1488, allocations: 23.98 kB / 368.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.1488, allocations: 0 / 368.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1489, allocations: 0 / 368.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001962/0.1508, allocations: 0.9383 MB / 369.7 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.435e-05/0.1509, allocations: 100.8 kB / 369.8 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.822e-05/0.151, allocations: 20.05 kB / 369.8 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003561/0.1513, allocations: 75.97 kB / 369.9 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.1515, allocations: 63.83 kB / 369.9 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.983e-05/0.1516, allocations: 27.98 kB / 370 MB, free: 1.746 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001027/0.1517, allocations: 131.3 kB / 370.1 MB, free: 1.617 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1517, allocations: 0 / 370.1 MB, free: 1.617 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003361/0.152, allocations: 80 kB / 370.2 MB, free: 1.539 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.002327/0.1544, allocations: 1.488 MB / 371.7 MB, free: 24 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1834/0.3377, allocations: 0.6448 MB / 372.3 MB, free: 19.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.3378, allocations: 0.625 kB / 372.3 MB, free: 19.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001296/0.3391, allocations: 296.2 kB / 372.6 MB, free: 19.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000482/0.3396, allocations: 33.17 kB / 372.6 MB, free: 19.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006254/0.3459, allocations: 3.078 MB / 375.7 MB, free: 18.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/0.3462, allocations: 0.7634 MB / 376.5 MB, free: 17.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003006/0.3466, allocations: 33.03 kB / 376.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002683/0.3469, allocations: 84.09 kB / 376.6 MB, free: 17.35 MB / 302.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3469, allocations: 0 / 376.6 MB, free: 17.35 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02765/0.3745, allocations: 5.711 MB / 382.3 MB, free: 16.78 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001979/0.3748, allocations: 191.5 kB / 382.5 MB, free: 16.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.971/2.345, allocations: 0 / 382.5 MB, free: 16.55 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)