Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.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.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009169/0.000917, allocations: 98.64 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.0009117/0.0009118, 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.501/1.501, allocations: 227.3 MB / 246 MB, free: 12.01 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002363/0.0002365, allocations: 8 kB / 306.8 MB, free: 1.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1254, allocations: 51.5 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001705/0.1272, allocations: 1.301 MB / 359.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007715/0.128, allocations: 471.2 kB / 360.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.346e-05/0.128, allocations: 4 kB / 360.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.077e-05/0.1281, allocations: 7.922 kB / 360.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001454/0.1282, allocations: 7.938 kB / 360.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001985/0.1284, allocations: 31.95 kB / 360.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001034/0.1285, allocations: 63.78 kB / 360.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.918e-05/0.1286, allocations: 15.97 kB / 360.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.1288, allocations: 27.86 kB / 360.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.516e-05/0.1289, allocations: 31.89 kB / 360.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.338e-05/0.1289, allocations: 0 / 360.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.085e-05/0.1289, allocations: 16 kB / 360.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.896e-05/0.129, allocations: 7.922 kB / 360.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.853e-05/0.129, allocations: 37.64 kB / 360.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.625e-05/0.1291, allocations: 39.91 kB / 360.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1291, allocations: 0 / 360.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1291, allocations: 4 kB / 360.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.1291, allocations: 0 / 360.4 MB, free: 11.92 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004705/0.1296, allocations: 371.3 kB / 360.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.1296, allocations: 8.031 kB / 360.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.087e-05/0.1297, allocations: 38.55 kB / 360.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001993/0.1299, allocations: 23.89 kB / 360.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001699/0.1301, allocations: 179 kB / 361 MB, free: 11.22 MB / 302.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= sine.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.1302, allocations: 45.64 kB / 361 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.455e-05/0.1302, allocations: 4 kB / 361 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004024/0.1306, allocations: 172.8 kB / 361.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.393e-06/0.1306, allocations: 0 / 361.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.1307, allocations: 4 kB / 361.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.1307, allocations: 0 / 361.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001345/0.1308, allocations: 39.97 kB / 361.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001768/0.131, allocations: 174.5 kB / 361.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.1313, allocations: 174.4 kB / 361.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.845e-05/0.1314, allocations: 45.66 kB / 361.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.1315, allocations: 4 kB / 361.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.1315, allocations: 38.5 kB / 361.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.1315, allocations: 0 / 361.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003463/0.1319, allocations: 121.5 kB / 361.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.886e-05/0.1319, allocations: 85.11 kB / 361.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.1321, allocations: 121.8 kB / 362 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.1321, allocations: 25.7 kB / 362 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.938e-05/0.1321, allocations: 92.14 kB / 362.1 MB, free: 9.922 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.621e-05/0.1322, allocations: 23.88 kB / 362.1 MB, free: 9.898 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-06/0.1322, allocations: 0 / 362.1 MB, free: 9.898 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.1323, allocations: 318.8 kB / 362.4 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.156e-05/0.1324, allocations: 15.98 kB / 362.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.899e-05/0.1324, allocations: 62 kB / 362.5 MB, free: 9.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.284e-05/0.1325, allocations: 31.92 kB / 362.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1325, allocations: 0 / 362.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001786/0.1327, allocations: 105.4 kB / 362.6 MB, free: 9.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.1327, allocations: 8 kB / 362.6 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1327, allocations: 3.984 kB / 362.6 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.1328, allocations: 4 kB / 362.7 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.307e-05/0.1328, allocations: 19.92 kB / 362.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.1329, allocations: 4 kB / 362.7 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.282e-05/0.1329, allocations: 8.219 kB / 362.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.859e-06/0.1329, allocations: 4 kB / 362.7 MB, free: 9.289 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 (sine.startOutput,$CLKPRE.sine.startOutput,sine.counter,$CLKPRE.sine.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.startOutput,sine.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 9.625e-05/0.133, allocations: 122 kB / 362.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.1332, allocations: 81.47 kB / 362.9 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.649e-05/0.1332, allocations: 12.38 kB / 362.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.1332, allocations: 0 / 362.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1333, allocations: 0 / 362.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1333, allocations: 0 / 362.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000133/0.1334, allocations: 177.6 kB / 363.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1334, allocations: 4 kB / 363.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.329e-05/0.1335, allocations: 8 kB / 363.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.1335, allocations: 0 / 363.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.1335, allocations: 11.94 kB / 363.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.1335, allocations: 0 / 363.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1335, allocations: 0 / 363.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002168/0.1338, allocations: 129.8 kB / 363.2 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.742e-05/0.1338, allocations: 89.38 kB / 363.3 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/0.1338, allocations: 4 kB / 363.3 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.132e-05/0.1339, allocations: 15.94 kB / 363.3 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.499e-05/0.134, allocations: 7.938 kB / 363.3 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.899e-06/0.134, allocations: 4 kB / 363.3 MB, free: 8.527 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.209e-05/0.134, allocations: 98.64 kB / 363.4 MB, free: 8.434 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.134, allocations: 0 / 363.4 MB, free: 8.434 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002154/0.1343, allocations: 16 kB / 363.5 MB, free: 8.418 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: 2 (sine.counter,sine.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.counter,sine.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0005792/0.1349, allocations: 0.6914 MB / 364.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001735/0.135, allocations: 59.91 kB / 364.2 MB, free: 7.637 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.135, allocations: 0 / 364.2 MB, free: 7.637 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.838e-05/0.1351, allocations: 11.98 kB / 364.2 MB, free: 7.625 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006362/0.1357, allocations: 0.7225 MB / 364.9 MB, free: 6.879 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008504/0.1366, allocations: 0.5799 MB / 365.5 MB, free: 6.234 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002363/0.1368, allocations: 0.6937 MB / 366.2 MB, free: 5.516 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.022e-05/0.1369, allocations: 4.188 kB / 366.2 MB, free: 5.512 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.864e-05/0.1369, allocations: 19.42 kB / 366.2 MB, free: 5.492 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1369, allocations: 0 / 366.2 MB, free: 5.492 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01218/0.1491, allocations: 1.656 MB / 367.9 MB, free: 3.988 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001711/0.1493, allocations: 209.7 kB / 368.1 MB, free: 3.742 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2/2.149, allocations: 0 / 368.1 MB, free: 3.742 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat does not exist to compare? outputFormat=mat