Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009885/0.0009886, allocations: 98.64 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.001088/0.001089, allocations: 203.4 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002708/0.0002708, allocations: 4 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1327, allocations: 51.5 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002086/0.1348, allocations: 1.301 MB / 359.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009055/0.1358, allocations: 0.499 MB / 360 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.882e-05/0.1359, allocations: 0 / 360 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.083e-05/0.1359, allocations: 0 / 360 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001408/0.1361, allocations: 19.86 kB / 360 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003401/0.1364, allocations: 47.83 kB / 360.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.506e-05/0.1365, allocations: 31.95 kB / 360.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.1366, allocations: 16.16 kB / 360.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.1368, allocations: 23.88 kB / 360.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.152e-05/0.1369, allocations: 23.84 kB / 360.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.424e-05/0.1369, allocations: 4 kB / 360.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.487e-05/0.1369, allocations: 3.984 kB / 360.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.827e-05/0.137, allocations: 15.94 kB / 360.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.494e-05/0.137, allocations: 37.64 kB / 360.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.1371, allocations: 43.91 kB / 360.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1371, allocations: 0 / 360.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1372, allocations: 0 / 360.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1372, allocations: 0 / 360.3 MB, free: 11.68 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004768/0.1376, allocations: 375.3 kB / 360.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.1377, allocations: 8.031 kB / 360.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.428e-05/0.1377, allocations: 38.56 kB / 360.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001647/0.1379, allocations: 19.89 kB / 360.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001967/0.1381, allocations: 186.8 kB / 360.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.1381, allocations: 7.953 kB / 360.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.701e-05/0.1382, allocations: 11.98 kB / 360.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002884/0.1385, allocations: 133.8 kB / 361 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.1385, allocations: 0 / 361 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.1385, allocations: 4 kB / 361 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.1385, allocations: 4 kB / 361 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.404e-05/0.1386, allocations: 31.92 kB / 361.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003919/0.139, allocations: 270.6 kB / 361.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002615/0.1393, allocations: 160.8 kB / 361.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.424e-05/0.1393, allocations: 12.19 kB / 361.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.1394, allocations: 34.56 kB / 361.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.1394, allocations: 4 kB / 361.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003106/0.1397, allocations: 101.5 kB / 361.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.705e-05/0.1398, allocations: 110.7 kB / 361.8 MB, free: 9.938 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.1399, allocations: 136.7 kB / 361.9 MB, free: 9.793 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.14, allocations: 33.95 kB / 361.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.327e-05/0.14, allocations: 88.33 kB / 362 MB, free: 9.664 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/0.1401, allocations: 7.891 kB / 362 MB, free: 9.656 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.344e-06/0.1401, allocations: 8 kB / 362 MB, free: 9.648 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1402, allocations: 314.8 kB / 362.3 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.202e-05/0.1403, allocations: 15.98 kB / 362.3 MB, free: 9.316 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.286e-05/0.1403, allocations: 52.28 kB / 362.4 MB, free: 9.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.06e-05/0.1404, allocations: 23.92 kB / 362.4 MB, free: 9.227 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1404, allocations: 3.938 kB / 362.4 MB, free: 9.223 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001642/0.1406, allocations: 89.61 kB / 362.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.1406, allocations: 4 kB / 362.5 MB, free: 9.125 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.1406, allocations: 3.938 kB / 362.5 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.833e-05/0.1407, allocations: 7.938 kB / 362.5 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.682e-05/0.1408, allocations: 11.98 kB / 362.5 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.1408, allocations: 0 / 362.5 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.608e-05/0.1408, allocations: 7.906 kB / 362.5 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.1409, allocations: 4 kB / 362.5 MB, free: 9.09 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: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.000101/0.141, allocations: 129.9 kB / 362.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.758e-05/0.141, allocations: 53.53 kB / 362.7 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.608e-05/0.1411, allocations: 16.52 kB / 362.7 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1411, allocations: 4 kB / 362.7 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1411, allocations: 0 / 362.7 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1411, allocations: 3.984 kB / 362.7 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001963/0.1413, allocations: 177.5 kB / 362.9 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1413, allocations: 3.984 kB / 362.9 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.633e-05/0.1414, allocations: 12 kB / 362.9 MB, free: 8.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.1414, allocations: 4 kB / 362.9 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.1414, allocations: 8 kB / 363 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.1414, allocations: 0 / 363 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.303e-06/0.1414, allocations: 4 kB / 363 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002518/0.1417, allocations: 220.5 kB / 363.2 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.431e-05/0.1418, allocations: 89 kB / 363.3 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.218e-05/0.1418, allocations: 4 kB / 363.3 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.018e-05/0.1419, allocations: 4 kB / 363.3 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.467e-05/0.1419, allocations: 4 kB / 363.3 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.167e-06/0.1419, allocations: 0 / 363.3 MB, free: 8.242 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.941e-05/0.142, allocations: 115.2 kB / 363.4 MB, free: 8.129 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.142, allocations: 0 / 363.4 MB, free: 8.129 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002328/0.1423, allocations: 8 kB / 363.4 MB, free: 8.121 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: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0006439/0.1429, allocations: 0.9135 MB / 364.3 MB, free: 7.164 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001721/0.1431, allocations: 43.91 kB / 364.3 MB, free: 7.121 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1431, allocations: 0 / 364.3 MB, free: 7.121 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.792e-05/0.1432, allocations: 20.36 kB / 364.4 MB, free: 7.102 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.1435, allocations: 30.91 kB / 364.4 MB, free: 7.074 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.1447, allocations: 1.154 MB / 365.5 MB, free: 5.844 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.145, allocations: 0.7004 MB / 366.2 MB, free: 5.117 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.629e-05/0.145, allocations: 7.938 kB / 366.3 MB, free: 5.109 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.398e-05/0.1451, allocations: 19.42 kB / 366.3 MB, free: 5.09 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1451, allocations: 4 kB / 366.3 MB, free: 5.086 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01179/0.1569, allocations: 1.498 MB / 367.8 MB, free: 3.77 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000206/0.1572, allocations: 221 kB / 368 MB, free: 3.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.896/2.053, allocations: 0 / 368 MB, free: 3.52 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat does not exist to compare? outputFormat=mat