Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009789/0.0009792, allocations: 100.4 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.001015/0.001015, allocations: 192.2 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.596/1.596, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002561/0.0002562, allocations: 4 kB / 306.8 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.1553, allocations: 51.5 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002825/0.1582, allocations: 1.584 MB / 359.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002075/0.1603, allocations: 1.135 MB / 361 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001519/0.1605, allocations: 11.94 kB / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006349/0.1611, allocations: 139.4 kB / 361.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004246/0.1616, allocations: 123.6 kB / 361.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006172/0.1622, allocations: 167.6 kB / 361.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000289/0.1625, allocations: 171.5 kB / 361.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001689/0.1627, allocations: 37.5 kB / 361.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001472/0.1628, allocations: 67.64 kB / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.163, allocations: 67.62 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.032e-05/0.163, allocations: 4 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000135/0.1631, allocations: 39.98 kB / 361.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.225e-05/0.1632, allocations: 35.83 kB / 361.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.926e-05/0.1633, allocations: 49.64 kB / 361.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002471/0.1635, allocations: 159.9 kB / 362.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.1636, allocations: 4 kB / 362.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.1636, allocations: 0 / 362.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.479e-05/0.1636, allocations: 0 / 362.1 MB, free: 9.977 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001069/0.1647, allocations: 496.1 kB / 362.6 MB, free: 9.438 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.981e-05/0.1647, allocations: 8.031 kB / 362.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.923e-05/0.1648, allocations: 34.56 kB / 362.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.971e-05/0.1649, allocations: 23.72 kB / 362.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005232/0.1654, allocations: 257.7 kB / 362.9 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.629e-05/0.1655, allocations: 12 kB / 362.9 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.942e-05/0.1655, allocations: 7.953 kB / 362.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004717/0.166, allocations: 146.4 kB / 363 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.166, allocations: 0 / 363 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.066e-05/0.166, allocations: 3.938 kB / 363 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.1661, allocations: 8 kB / 363.1 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001433/0.1662, allocations: 39.91 kB / 363.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008601/0.1671, allocations: 358.4 kB / 363.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002537/0.1674, allocations: 115.9 kB / 363.6 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.766e-05/0.1675, allocations: 42.56 kB / 363.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.485e-05/0.1675, allocations: 0 / 363.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001843/0.1677, allocations: 83.31 kB / 363.7 MB, free: 8.141 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.643e-06/0.1677, allocations: 0 / 363.7 MB, free: 8.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004302/0.1682, allocations: 133.4 kB / 363.8 MB, free: 8.004 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001352/0.1683, allocations: 140.5 kB / 363.9 MB, free: 7.836 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004907/0.1688, allocations: 273.2 kB / 364.2 MB, free: 7.562 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/0.1688, allocations: 29.7 kB / 364.2 MB, free: 7.527 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.169, allocations: 116.1 kB / 364.4 MB, free: 7.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.995e-05/0.169, allocations: 23.73 kB / 364.4 MB, free: 7.387 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.513e-06/0.1691, allocations: 0 / 364.4 MB, free: 7.387 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002329/0.1693, allocations: 330.8 kB / 364.7 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.825e-05/0.1694, allocations: 23.92 kB / 364.7 MB, free: 7.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.64e-05/0.1695, allocations: 70 kB / 364.8 MB, free: 6.941 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.47e-05/0.1696, allocations: 27.94 kB / 364.8 MB, free: 6.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1696, allocations: 0 / 364.8 MB, free: 6.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002365/0.1698, allocations: 117.5 kB / 364.9 MB, free: 6.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.1699, allocations: 4 kB / 364.9 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.1699, allocations: 3.984 kB / 364.9 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.1699, allocations: 7.984 kB / 364.9 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.771e-05/0.17, allocations: 11.94 kB / 365 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.17, allocations: 4 kB / 365 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.133e-05/0.1701, allocations: 4 kB / 365 MB, free: 6.758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/0.1701, allocations: 4 kB / 365 MB, free: 6.754 MB / 302.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: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.000178/0.1703, allocations: 145.8 kB / 365.1 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.88e-05/0.1704, allocations: 73.28 kB / 365.2 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.904e-05/0.1705, allocations: 25.7 kB / 365.2 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.1705, allocations: 0 / 365.2 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.1706, allocations: 4 kB / 365.2 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1706, allocations: 0 / 365.2 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002634/0.1708, allocations: 237.8 kB / 365.4 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1708, allocations: 4 kB / 365.5 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.017e-05/0.1709, allocations: 8 kB / 365.5 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.1709, allocations: 0 / 365.5 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.1709, allocations: 4.062 kB / 365.5 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.1709, allocations: 7.938 kB / 365.5 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1709, allocations: 0 / 365.5 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002717/0.1712, allocations: 154.5 kB / 365.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.1713, allocations: 108.9 kB / 365.7 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.641e-05/0.1714, allocations: 7.984 kB / 365.7 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.928e-05/0.1714, allocations: 8 kB / 365.7 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.396e-05/0.1715, allocations: 7.984 kB / 365.8 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.433e-05/0.1715, allocations: 4 kB / 365.8 MB, free: 5.859 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002893/0.1718, allocations: 200.5 kB / 366 MB, free: 5.664 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1718, allocations: 0 / 366 MB, free: 5.664 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002891/0.1721, allocations: 28 kB / 366 MB, free: 5.637 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00181/0.174, allocations: 1.003 MB / 367 MB, free: 4.742 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002661/0.1742, allocations: 63.91 kB / 367 MB, free: 4.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.1742, allocations: 256 / 367 MB, free: 4.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.641e-05/0.1743, allocations: 35.92 kB / 367.1 MB, free: 4.645 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004487/0.1748, allocations: 53.47 kB / 367.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.1768, allocations: 1.005 MB / 368.1 MB, free: 3.516 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000393/0.1772, allocations: 0.7283 MB / 368.9 MB, free: 2.762 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.1773, allocations: 29.52 kB / 368.9 MB, free: 2.734 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.1774, allocations: 51.42 kB / 368.9 MB, free: 2.684 MB / 302.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1774, allocations: 0 / 368.9 MB, free: 2.684 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2238/0.4013, allocations: 4.128 MB / 373.1 MB, free: 18.84 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/0.4016, allocations: 244.2 kB / 373.3 MB, free: 18.6 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.965/2.366, allocations: 3.562 kB / 373.3 MB, free: 18.6 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat