Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.IntegerSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009404/0.0009404, allocations: 100.8 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.001003/0.001003, allocations: 208.8 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.52/1.52, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002692/0.0002691, allocations: 4 kB / 306.7 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.147, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.001939/0.149, allocations: 1.223 MB / 359.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003486/0.1494, allocations: 139.6 kB / 359.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.472e-05/0.1495, allocations: 3.938 kB / 359.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.619e-05/0.1495, allocations: 3.984 kB / 359.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000121/0.1496, allocations: 3.984 kB / 359.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002792/0.1499, allocations: 39.78 kB / 359.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.952e-05/0.15, allocations: 23.97 kB / 359.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.1501, allocations: 15.98 kB / 359.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.248e-05/0.1502, allocations: 11.92 kB / 359.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.784e-05/0.1503, allocations: 7.938 kB / 359.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.1503, allocations: 7.938 kB / 359.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.124e-05/0.1503, allocations: 0 / 359.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.873e-05/0.1504, allocations: 11.98 kB / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.948e-05/0.1504, allocations: 37.64 kB / 359.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.001e-05/0.1505, allocations: 23.94 kB / 359.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.1505, allocations: 0 / 359.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1505, allocations: 0 / 359.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.497e-06/0.1505, allocations: 0 / 359.8 MB, free: 12.2 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004912/0.151, allocations: 359.4 kB / 360.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.1511, allocations: 15.97 kB / 360.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.859e-05/0.1511, allocations: 42.55 kB / 360.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.962e-05/0.1511, allocations: 7.906 kB / 360.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.1514, allocations: 186.8 kB / 360.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.1514, allocations: 4 kB / 360.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.1515, allocations: 3.953 kB / 360.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.1518, allocations: 117 kB / 360.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.1518, allocations: 0 / 360.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.1518, allocations: 4 kB / 360.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.1518, allocations: 0 / 360.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.615e-05/0.1519, allocations: 27.92 kB / 360.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003647/0.1523, allocations: 265.7 kB / 360.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002368/0.1525, allocations: 138.2 kB / 360.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.1525, allocations: 4 kB / 360.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.1526, allocations: 34.62 kB / 360.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.213e-06/0.1526, allocations: 0 / 360.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002712/0.1529, allocations: 77.7 kB / 361 MB, free: 10.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.643e-05/0.153, allocations: 85.22 kB / 361.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.1531, allocations: 140.4 kB / 361.2 MB, free: 10.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.1531, allocations: 25.7 kB / 361.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.2e-05/0.1532, allocations: 84.14 kB / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.604e-06/0.1532, allocations: 0 / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-06/0.1532, allocations: 7.938 kB / 361.3 MB, free: 10.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1534, allocations: 318.8 kB / 361.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.214e-05/0.1534, allocations: 12 kB / 361.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.6e-05/0.1535, allocations: 35.42 kB / 361.7 MB, free: 9.969 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.781e-05/0.1536, allocations: 15.94 kB / 361.7 MB, free: 9.953 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.1536, allocations: 3.953 kB / 361.7 MB, free: 9.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001288/0.1537, allocations: 73.8 kB / 361.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.1537, allocations: 8 kB / 361.8 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1538, allocations: 3.938 kB / 361.8 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.1538, allocations: 0 / 361.8 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-05/0.1538, allocations: 15.98 kB / 361.8 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.1539, allocations: 0 / 361.8 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.645e-05/0.1539, allocations: 12.06 kB / 361.8 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.1539, allocations: 3.984 kB / 361.8 MB, free: 9.828 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001132/0.154, allocations: 121.8 kB / 362 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.148e-05/0.1541, allocations: 53.55 kB / 362 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.884e-05/0.1542, allocations: 8.25 kB / 362 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1542, allocations: 0 / 362 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1542, allocations: 7.984 kB / 362 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1542, allocations: 0 / 362 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001878/0.1544, allocations: 169.6 kB / 362.2 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1544, allocations: 4 kB / 362.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.104e-05/0.1545, allocations: 11.95 kB / 362.2 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.1545, allocations: 4 kB / 362.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.764e-06/0.1545, allocations: 0 / 362.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.1545, allocations: 0 / 362.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.1545, allocations: 7.922 kB / 362.2 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002009/0.1547, allocations: 182.1 kB / 362.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.905e-05/0.1548, allocations: 93 kB / 362.5 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.703e-05/0.1548, allocations: 4 kB / 362.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.934e-05/0.1549, allocations: 4 kB / 362.5 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.727e-05/0.1549, allocations: 3.984 kB / 362.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.1549, allocations: 4 kB / 362.5 MB, free: 9.047 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.394e-05/0.155, allocations: 105.4 kB / 362.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.155, allocations: 0 / 362.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00023/0.1552, allocations: 4 kB / 362.6 MB, free: 8.941 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0005835/0.1558, allocations: 0.7875 MB / 363.4 MB, free: 8.117 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001369/0.156, allocations: 35.91 kB / 363.4 MB, free: 8.082 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.156, allocations: 0 / 363.4 MB, free: 8.082 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.846e-05/0.156, allocations: 12 kB / 363.4 MB, free: 8.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.1563, allocations: 32.27 kB / 363.5 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.1574, allocations: 0.9115 MB / 364.4 MB, free: 7.059 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003646/0.1578, allocations: 0.6926 MB / 365.1 MB, free: 6.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.696e-05/0.1578, allocations: 7.984 kB / 365.1 MB, free: 6.332 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.201e-05/0.1579, allocations: 11.44 kB / 365.1 MB, free: 6.32 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1579, allocations: 0 / 365.1 MB, free: 6.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01183/0.1697, allocations: 1.21 MB / 366.3 MB, free: 5.262 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001839/0.1699, allocations: 197.7 kB / 366.5 MB, free: 5.016 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/2.126, allocations: 3.938 kB / 366.5 MB, free: 5.012 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat does not exist to compare? outputFormat=mat