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.001118/0.001118, allocations: 97.62 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.001416/0.001416, allocations: 190.5 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.512/1.512, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002386/0.0002386, allocations: 4 kB / 306.8 MB, free: 1.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1283, allocations: 51.48 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.001882/0.1302, allocations: 1.227 MB / 359.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003989/0.1306, allocations: 143.6 kB / 359.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.074e-05/0.1307, allocations: 11.94 kB / 359.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.255e-05/0.1308, allocations: 0 / 359.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001464/0.1309, allocations: 7.938 kB / 359.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002622/0.1312, allocations: 31.95 kB / 359.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.373e-05/0.1313, allocations: 35.86 kB / 359.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.036e-05/0.1314, allocations: 11.98 kB / 359.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.634e-05/0.1314, allocations: 7.938 kB / 359.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.827e-05/0.1315, allocations: 15.92 kB / 359.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.691e-05/0.1315, allocations: 0 / 359.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.014e-05/0.1315, allocations: 4 kB / 359.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.056e-05/0.1316, allocations: 15.91 kB / 359.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.791e-05/0.1316, allocations: 33.7 kB / 359.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.263e-05/0.1317, allocations: 31.89 kB / 359.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1317, allocations: 0 / 359.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1317, allocations: 0 / 359.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.306e-06/0.1317, allocations: 0 / 359.9 MB, free: 12.18 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.0004266/0.1322, allocations: 359.4 kB / 360.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.1322, allocations: 8.031 kB / 360.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.913e-05/0.1323, allocations: 38.56 kB / 360.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.887e-05/0.1323, allocations: 11.89 kB / 360.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000198/0.1325, allocations: 182.9 kB / 360.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.1325, allocations: 11.98 kB / 360.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.146e-05/0.1326, allocations: 7.953 kB / 360.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002835/0.1328, allocations: 117 kB / 360.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.1329, allocations: 3.938 kB / 360.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.305e-06/0.1329, allocations: 0 / 360.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.1329, allocations: 0 / 360.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.47e-05/0.133, allocations: 23.98 kB / 360.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003209/0.1333, allocations: 269.7 kB / 360.9 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001916/0.1335, allocations: 134.2 kB / 361 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.872e-05/0.1336, allocations: 33.77 kB / 361 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.1336, allocations: 4 kB / 361 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.1336, allocations: 38.5 kB / 361.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.523e-06/0.1336, allocations: 0 / 361.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002372/0.1339, allocations: 77.61 kB / 361.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.994e-05/0.134, allocations: 89.17 kB / 361.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.1341, allocations: 144.3 kB / 361.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.1341, allocations: 25.7 kB / 361.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.594e-05/0.1341, allocations: 88.14 kB / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.624e-06/0.1342, allocations: 0 / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-06/0.1342, allocations: 0 / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1343, allocations: 314.8 kB / 361.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.018e-05/0.1343, allocations: 11.98 kB / 361.8 MB, free: 9.957 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.495e-05/0.1344, allocations: 43.42 kB / 361.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.096e-05/0.1344, allocations: 15.95 kB / 361.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1344, allocations: 0 / 361.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001328/0.1346, allocations: 81.45 kB / 362 MB, free: 9.801 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.1346, allocations: 4 kB / 362 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.1346, allocations: 4 kB / 362 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.1346, allocations: 0 / 362 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.543e-05/0.1347, allocations: 8 kB / 362 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.1347, allocations: 0 / 362 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.654e-05/0.1347, allocations: 12.05 kB / 362 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/0.1348, allocations: 8 kB / 362 MB, free: 9.766 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 8.964e-05/0.1349, allocations: 118.9 kB / 362.1 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.135, allocations: 53.53 kB / 362.2 MB, free: 9.582 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.572e-05/0.135, allocations: 12.25 kB / 362.2 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.135, allocations: 0 / 362.2 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.135, allocations: 0 / 362.2 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.135, allocations: 336 / 362.2 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001845/0.1352, allocations: 169.7 kB / 362.3 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1352, allocations: 3.953 kB / 362.3 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.156e-05/0.1353, allocations: 19.98 kB / 362.4 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.1353, allocations: 0 / 362.4 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.1353, allocations: 3.984 kB / 362.4 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.1353, allocations: 4 kB / 362.4 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1353, allocations: 0 / 362.4 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001745/0.1355, allocations: 168.3 kB / 362.5 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.176e-05/0.1356, allocations: 92.95 kB / 362.6 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.1356, allocations: 8 kB / 362.6 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.646e-05/0.1357, allocations: 3.938 kB / 362.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.111e-05/0.1357, allocations: 4 kB / 362.6 MB, free: 9.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-06/0.1357, allocations: 0 / 362.6 MB, free: 9.008 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.725e-05/0.1358, allocations: 107.2 kB / 362.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1358, allocations: 0 / 362.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002183/0.136, allocations: 4 kB / 362.7 MB, free: 8.898 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.00048/0.1365, allocations: 0.7115 MB / 363.5 MB, free: 8.156 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001217/0.1366, allocations: 35.98 kB / 363.5 MB, free: 8.121 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1367, allocations: 0 / 363.5 MB, free: 8.121 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.345e-05/0.1367, allocations: 11.92 kB / 363.5 MB, free: 8.109 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003368/0.137, allocations: 24.7 kB / 363.5 MB, free: 8.086 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007694/0.1378, allocations: 478.1 kB / 364 MB, free: 7.555 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.1381, allocations: 0.6965 MB / 364.7 MB, free: 6.832 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.468e-05/0.1382, allocations: 0 / 364.7 MB, free: 6.832 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.361e-05/0.1382, allocations: 15.44 kB / 364.7 MB, free: 6.816 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1382, allocations: 0 / 364.7 MB, free: 6.816 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01132/0.1495, allocations: 1.222 MB / 365.9 MB, free: 5.746 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001858/0.1498, allocations: 198.6 kB / 366.1 MB, free: 5.504 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.924/2.074, allocations: 4 kB / 366.1 MB, free: 5.5 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