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.00146/0.00146, allocations: 95.45 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.001797/0.001796, allocations: 209.2 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.537/1.537, allocations: 227.3 MB / 245.9 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003304/0.0003306, allocations: 4 kB / 306.7 MB, free: 1.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1471, allocations: 51.49 MB / 358.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002669/0.1498, allocations: 1.297 MB / 359.5 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.151, allocations: 467.2 kB / 360 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.317e-05/0.1512, allocations: 0 / 360 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.178e-05/0.1512, allocations: 7.922 kB / 360 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003057/0.1515, allocations: 11.98 kB / 360 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002666/0.1518, allocations: 39.89 kB / 360 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001086/0.1519, allocations: 35.89 kB / 360 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.1521, allocations: 19.97 kB / 360.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001888/0.1523, allocations: 31.89 kB / 360.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.596e-05/0.1523, allocations: 31.86 kB / 360.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.44e-05/0.1524, allocations: 0 / 360.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.326e-05/0.1524, allocations: 8 kB / 360.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.894e-05/0.1525, allocations: 11.91 kB / 360.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.112e-05/0.1525, allocations: 33.7 kB / 360.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.1526, allocations: 39.86 kB / 360.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1527, allocations: 0 / 360.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.158e-06/0.1527, allocations: 0 / 360.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1527, allocations: 4 kB / 360.2 MB, free: 11.93 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.000699/0.1534, allocations: 375.4 kB / 360.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.191e-05/0.1535, allocations: 8.031 kB / 360.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.23e-05/0.1535, allocations: 34.5 kB / 360.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002429/0.1538, allocations: 23.89 kB / 360.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000266/0.154, allocations: 183 kB / 360.8 MB, free: 11.23 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.0001924/0.1542, allocations: 45.64 kB / 360.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.638e-05/0.1543, allocations: 4 kB / 360.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004442/0.1547, allocations: 168.8 kB / 361 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.1547, allocations: 0 / 361 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.1548, allocations: 4 kB / 361.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.1548, allocations: 4 kB / 361.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001345/0.1549, allocations: 35.97 kB / 361.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002942/0.1552, allocations: 174.5 kB / 361.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003735/0.1556, allocations: 174.4 kB / 361.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.1556, allocations: 12.08 kB / 361.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.1557, allocations: 30.56 kB / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.1557, allocations: 0 / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004014/0.1561, allocations: 206.7 kB / 361.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.937e-05/0.1562, allocations: 92.98 kB / 361.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.1563, allocations: 121.6 kB / 361.9 MB, free: 10 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.1563, allocations: 25.7 kB / 361.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.166e-05/0.1564, allocations: 96.12 kB / 362 MB, free: 9.875 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.1564, allocations: 7.844 kB / 362 MB, free: 9.867 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-06/0.1564, allocations: 0 / 362 MB, free: 9.867 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1566, allocations: 322.8 kB / 362.3 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.943e-05/0.1566, allocations: 16.03 kB / 362.3 MB, free: 9.527 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.494e-05/0.1567, allocations: 61.98 kB / 362.4 MB, free: 9.445 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.362e-05/0.1568, allocations: 31.94 kB / 362.4 MB, free: 9.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1568, allocations: 0 / 362.4 MB, free: 9.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001853/0.157, allocations: 101.6 kB / 362.5 MB, free: 9.309 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.157, allocations: 11.95 kB / 362.5 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.157, allocations: 0 / 362.5 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.157, allocations: 7.984 kB / 362.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.509e-05/0.1571, allocations: 12 kB / 362.6 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.1571, allocations: 7.938 kB / 362.6 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.37e-05/0.1572, allocations: 7.984 kB / 362.6 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.1572, allocations: 4 kB / 362.6 MB, free: 9.258 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 0.0001121/0.1573, allocations: 122 kB / 362.7 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.1574, allocations: 73.59 kB / 362.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.914e-05/0.1575, allocations: 20.31 kB / 362.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1575, allocations: 0 / 362.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1575, allocations: 0 / 362.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1575, allocations: 0 / 362.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001492/0.1577, allocations: 177.6 kB / 363 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1577, allocations: 0 / 363 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.151e-05/0.1578, allocations: 11.98 kB / 363 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1578, allocations: 0 / 363 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.1578, allocations: 4 kB / 363 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.1578, allocations: 11.89 kB / 363 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1578, allocations: 0 / 363 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.1581, allocations: 139.6 kB / 363.1 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.308e-05/0.1582, allocations: 96.98 kB / 363.2 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.715e-05/0.1582, allocations: 8.328 kB / 363.2 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.401e-05/0.1583, allocations: 4 kB / 363.2 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.52e-05/0.1584, allocations: 11.94 kB / 363.3 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.1584, allocations: 7.984 kB / 363.3 MB, free: 8.469 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.627e-05/0.1585, allocations: 95.27 kB / 363.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1585, allocations: 0 / 363.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000211/0.1587, allocations: 12 kB / 363.4 MB, free: 8.363 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.0009199/0.1596, allocations: 0.7735 MB / 364.1 MB, free: 7.555 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002063/0.1598, allocations: 67.91 kB / 364.2 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1598, allocations: 0 / 364.2 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.158e-05/0.1599, allocations: 8 kB / 364.2 MB, free: 7.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007717/0.1607, allocations: 0.7108 MB / 364.9 MB, free: 6.746 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.1621, allocations: 1.478 MB / 366.4 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000458/0.1626, allocations: 0.6926 MB / 367.1 MB, free: 4.477 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.52e-05/0.1626, allocations: 8.172 kB / 367.1 MB, free: 4.469 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.384e-05/0.1627, allocations: 19.44 kB / 367.1 MB, free: 4.449 MB / 302.1 MB Notification: Performance of SimCode: time 3.717e-06/0.1627, allocations: 4 kB / 367.1 MB, free: 4.445 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0119/0.1746, allocations: 1.648 MB / 368.8 MB, free: 2.949 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000208/0.1749, allocations: 197.6 kB / 369 MB, free: 2.703 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.921/2.096, allocations: 3.938 kB / 369 MB, free: 2.699 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