Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 86.58 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 179.5 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 223.3 MB / 241.2 MB, free: 5.281 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002653/0.0002654, allocations: 9.344 kB / 300.9 MB, free: 5.516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1371, allocations: 50.44 MB / 351.4 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002345/0.1395, allocations: 1.282 MB / 352.6 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007525/0.1403, allocations: 427.3 kB / 353.1 MB, free: 9.668 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.479e-05/0.1404, allocations: 0 / 353.1 MB, free: 9.668 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.976e-05/0.1404, allocations: 3.938 kB / 353.1 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.1406, allocations: 15.92 kB / 353.1 MB, free: 9.648 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002205/0.1408, allocations: 35.91 kB / 353.1 MB, free: 9.613 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001084/0.1409, allocations: 55.84 kB / 353.2 MB, free: 9.559 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.1411, allocations: 11.97 kB / 353.2 MB, free: 9.547 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.1412, allocations: 27.86 kB / 353.2 MB, free: 9.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.697e-05/0.1413, allocations: 31.84 kB / 353.2 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.263e-05/0.1413, allocations: 4 kB / 353.2 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.602e-05/0.1413, allocations: 4 kB / 353.2 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.565e-05/0.1413, allocations: 3.984 kB / 353.2 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.046e-05/0.1414, allocations: 37.64 kB / 353.3 MB, free: 9.434 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.88e-05/0.1415, allocations: 43.92 kB / 353.3 MB, free: 9.391 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.1415, allocations: 0 / 353.3 MB, free: 9.391 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1415, allocations: 0 / 353.3 MB, free: 9.391 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.78e-06/0.1415, allocations: 0 / 353.3 MB, free: 9.391 MB / 286.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.0005776/0.1421, allocations: 363.1 kB / 353.7 MB, free: 8.988 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.1422, allocations: 12.03 kB / 353.7 MB, free: 8.977 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.19e-05/0.1422, allocations: 38.5 kB / 353.7 MB, free: 8.93 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.455e-05/0.1423, allocations: 11.86 kB / 353.7 MB, free: 8.918 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002051/0.1425, allocations: 190.9 kB / 353.9 MB, free: 8.691 MB / 286.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.0001526/0.1426, allocations: 33.64 kB / 354 MB, free: 8.652 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.711e-05/0.1427, allocations: 8 kB / 354 MB, free: 8.645 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003897/0.1431, allocations: 160.9 kB / 354.1 MB, free: 8.469 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.1431, allocations: 4 kB / 354.1 MB, free: 8.465 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.1431, allocations: 4 kB / 354.1 MB, free: 8.461 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.1431, allocations: 3.953 kB / 354.1 MB, free: 8.457 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.1433, allocations: 43.91 kB / 354.2 MB, free: 8.414 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002723/0.1435, allocations: 178.5 kB / 354.4 MB, free: 8.188 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003066/0.1439, allocations: 178.3 kB / 354.5 MB, free: 7.977 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.564e-05/0.144, allocations: 41.64 kB / 354.6 MB, free: 7.93 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.144, allocations: 4 kB / 354.6 MB, free: 7.926 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.144, allocations: 34.56 kB / 354.6 MB, free: 7.883 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.633e-06/0.144, allocations: 4 kB / 354.6 MB, free: 7.879 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.000359/0.1444, allocations: 121.5 kB / 354.7 MB, free: 7.754 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.872e-05/0.1445, allocations: 89.06 kB / 354.8 MB, free: 7.648 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.1446, allocations: 117.8 kB / 354.9 MB, free: 7.523 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.1446, allocations: 25.7 kB / 355 MB, free: 7.492 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.678e-05/0.1447, allocations: 96.25 kB / 355 MB, free: 7.395 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.1447, allocations: 7.906 kB / 355.1 MB, free: 7.387 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.007e-06/0.1447, allocations: 0 / 355.1 MB, free: 7.387 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1449, allocations: 322.8 kB / 355.4 MB, free: 7.062 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.896e-05/0.1449, allocations: 12 kB / 355.4 MB, free: 7.051 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.692e-05/0.145, allocations: 69.92 kB / 355.5 MB, free: 6.961 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.995e-05/0.1451, allocations: 20 kB / 355.5 MB, free: 6.941 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1451, allocations: 4 kB / 355.5 MB, free: 6.938 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001774/0.1453, allocations: 105.4 kB / 355.6 MB, free: 6.828 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.1453, allocations: 8 kB / 355.6 MB, free: 6.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.1453, allocations: 0 / 355.6 MB, free: 6.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.1453, allocations: 7.984 kB / 355.6 MB, free: 6.812 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.276e-05/0.1454, allocations: 15.94 kB / 355.6 MB, free: 6.797 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.1454, allocations: 4.219 kB / 355.6 MB, free: 6.793 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.303e-05/0.1455, allocations: 15.94 kB / 355.6 MB, free: 6.777 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.1455, allocations: 4 kB / 355.6 MB, free: 6.773 MB / 286.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.834e-05/0.1456, allocations: 121.8 kB / 355.8 MB, free: 6.645 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.1457, allocations: 73.84 kB / 355.8 MB, free: 6.566 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.75e-05/0.1458, allocations: 16.36 kB / 355.8 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.1458, allocations: 0 / 355.8 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1458, allocations: 0 / 355.8 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1458, allocations: 0 / 355.8 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000143/0.146, allocations: 181.5 kB / 356 MB, free: 6.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.146, allocations: 4.188 kB / 356 MB, free: 6.316 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.438e-05/0.1461, allocations: 11.98 kB / 356 MB, free: 6.305 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1461, allocations: 3.938 kB / 356 MB, free: 6.301 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.1461, allocations: 4 kB / 356 MB, free: 6.297 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1461, allocations: 0 / 356 MB, free: 6.297 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1461, allocations: 0 / 356 MB, free: 6.297 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002261/0.1463, allocations: 141.7 kB / 356.2 MB, free: 6.137 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.398e-05/0.1464, allocations: 89 kB / 356.3 MB, free: 6.031 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.597e-05/0.1464, allocations: 4 kB / 356.3 MB, free: 6.027 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.5e-05/0.1465, allocations: 4 kB / 356.3 MB, free: 6.023 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.56e-05/0.1466, allocations: 4 kB / 356.3 MB, free: 6.02 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.1466, allocations: 3.984 kB / 356.3 MB, free: 6.016 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.402e-05/0.1466, allocations: 102.5 kB / 356.4 MB, free: 5.918 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1467, allocations: 4 kB / 356.4 MB, free: 5.914 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002066/0.1469, allocations: 8 kB / 356.4 MB, free: 5.906 MB / 286.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.0006564/0.1475, allocations: 0.6991 MB / 357.1 MB, free: 5.176 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001917/0.1477, allocations: 59.91 kB / 357.2 MB, free: 5.117 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1477, allocations: 3.938 kB / 357.2 MB, free: 5.113 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.858e-05/0.1478, allocations: 8.5 kB / 357.2 MB, free: 5.105 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007034/0.1485, allocations: 0.7258 MB / 357.9 MB, free: 4.355 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009395/0.1494, allocations: 0.5718 MB / 358.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003036/0.1498, allocations: 0.6926 MB / 359.2 MB, free: 3 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.273e-05/0.1498, allocations: 4.188 kB / 359.2 MB, free: 2.996 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.626e-05/0.1499, allocations: 23.42 kB / 359.2 MB, free: 2.973 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1499, allocations: 0 / 359.2 MB, free: 2.973 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01222/0.1621, allocations: 1.658 MB / 360.8 MB, free: 1.473 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001819/0.1623, allocations: 204 kB / 361 MB, free: 1.234 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.915/2.077, allocations: 0 / 361 MB, free: 1.234 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat does not exist to compare? outputFormat=mat