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.001172/0.001172, allocations: 103.1 kB / 16.5 MB, free: 6.645 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.001647/0.001648, allocations: 195 kB / 17.42 MB, free: 6.066 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.585/1.585, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 47.38 kB / 300.1 MB, free: 6.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1587, allocations: 49.45 MB / 349.5 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00454/0.1633, allocations: 1.639 MB / 351.2 MB, free: 3.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001046/0.1644, allocations: 447 kB / 351.6 MB, free: 2.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001628/0.1645, allocations: 3.938 kB / 351.6 MB, free: 2.645 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.49e-05/0.1647, allocations: 0 / 351.6 MB, free: 2.645 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002787/0.165, allocations: 19.86 kB / 351.6 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003503/0.1653, allocations: 28.59 kB / 351.6 MB, free: 2.598 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001779/0.1655, allocations: 67.77 kB / 351.7 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.1657, allocations: 15.98 kB / 351.7 MB, free: 2.516 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001782/0.1659, allocations: 27.92 kB / 351.8 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.323e-05/0.166, allocations: 39.83 kB / 351.8 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.059e-05/0.166, allocations: 0 / 351.8 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.146e-05/0.166, allocations: 7.938 kB / 351.8 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.916e-05/0.1661, allocations: 7.938 kB / 351.8 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.603e-05/0.1662, allocations: 27.8 kB / 351.8 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001883/0.1664, allocations: 63.78 kB / 351.9 MB, free: 2.344 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.1664, allocations: 0 / 351.9 MB, free: 2.344 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1664, allocations: 0 / 351.9 MB, free: 2.344 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.1664, allocations: 0 / 351.9 MB, free: 2.344 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.0009149/0.1673, allocations: 375.5 kB / 352.3 MB, free: 1.93 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.85e-05/0.1674, allocations: 8.031 kB / 352.3 MB, free: 1.922 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.643e-05/0.1675, allocations: 34.75 kB / 352.3 MB, free: 1.879 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.369e-05/0.1676, allocations: 12.84 kB / 352.3 MB, free: 1.867 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003642/0.1679, allocations: 190.2 kB / 352.5 MB, free: 1.645 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.0002776/0.1682, allocations: 38.25 kB / 352.5 MB, free: 1.602 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.808e-05/0.1683, allocations: 8.375 kB / 352.5 MB, free: 1.594 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005417/0.1688, allocations: 168.8 kB / 352.7 MB, free: 1.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.582e-05/0.1689, allocations: 3.984 kB / 352.7 MB, free: 1.406 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.496e-05/0.1689, allocations: 4 kB / 352.7 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.1689, allocations: 0 / 352.7 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001738/0.1691, allocations: 31.98 kB / 352.8 MB, free: 1.371 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003704/0.1695, allocations: 182.5 kB / 352.9 MB, free: 1.141 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004495/0.1699, allocations: 162.4 kB / 353.1 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000137/0.1701, allocations: 45.69 kB / 353.1 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.219e-05/0.1701, allocations: 15.8 kB / 353.2 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.065e-05/0.1702, allocations: 38.56 kB / 353.2 MB, free: 0.832 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.1702, allocations: 0 / 353.2 MB, free: 0.832 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004728/0.1707, allocations: 113.5 kB / 353.3 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/0.1708, allocations: 85.11 kB / 353.4 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001638/0.171, allocations: 121.8 kB / 353.5 MB, free: 496 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.171, allocations: 25.7 kB / 353.5 MB, free: 464 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.214e-05/0.1711, allocations: 92.27 kB / 353.6 MB, free: 368 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.661e-05/0.1712, allocations: 7.906 kB / 353.6 MB, free: 360 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.416e-05/0.1712, allocations: 25.7 kB / 353.6 MB, free: 328 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.1714, allocations: 314.8 kB / 354 MB, free: 4 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.703e-05/0.1715, allocations: 19.98 kB / 354 MB, free: 15.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.419e-05/0.1716, allocations: 61.94 kB / 354 MB, free: 15.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001573/0.1718, allocations: 77.94 kB / 354.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.1718, allocations: 0 / 354.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002661/0.1721, allocations: 105.4 kB / 354.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.438e-05/0.1721, allocations: 8 kB / 354.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.1721, allocations: 3.938 kB / 354.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.88e-05/0.1722, allocations: 4 kB / 354.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.1723, allocations: 20.2 kB / 354.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.1723, allocations: 0 / 354.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.012e-05/0.1724, allocations: 12.09 kB / 354.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.1724, allocations: 4 kB / 354.3 MB, free: 15.64 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 ($CLKPRE.sine.startOutput,sine.startOutput,$CLKPRE.sine.counter,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001799/0.1726, allocations: 129.9 kB / 354.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.1728, allocations: 69.62 kB / 354.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.491e-05/0.1728, allocations: 16.36 kB / 354.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.1729, allocations: 0 / 354.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.1729, allocations: 0 / 354.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1729, allocations: 8 kB / 354.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000208/0.1731, allocations: 173.5 kB / 354.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.1731, allocations: 7.875 kB / 354.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.603e-05/0.1732, allocations: 11.98 kB / 354.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.329e-06/0.1732, allocations: 0 / 354.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.876e-05/0.1732, allocations: 4 kB / 354.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.1733, allocations: 3.984 kB / 354.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.1733, allocations: 0 / 354.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002713/0.1735, allocations: 121.9 kB / 354.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001422/0.1737, allocations: 92.94 kB / 354.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.323e-05/0.1737, allocations: 8 kB / 354.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.27e-05/0.1738, allocations: 3.984 kB / 354.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.661e-05/0.1739, allocations: 4 kB / 354.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.1739, allocations: 0 / 354.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.531e-05/0.174, allocations: 102.9 kB / 355 MB, free: 14.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.174, allocations: 0 / 355 MB, free: 14.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000234/0.1742, allocations: 12 kB / 355 MB, free: 14.79 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009294/0.1752, allocations: 0.699 MB / 355.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000251/0.1754, allocations: 59.97 kB / 355.8 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1755, allocations: 4 kB / 355.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.348e-05/0.1755, allocations: 7.984 kB / 355.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009363/0.1765, allocations: 0.7218 MB / 356.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.1784, allocations: 1.411 MB / 357.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004154/0.1789, allocations: 0.7003 MB / 358.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.904e-05/0.1789, allocations: 4 kB / 358.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.131e-05/0.179, allocations: 23.36 kB / 358.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of SimCode: time 1.913e-06/0.179, allocations: 0 / 358.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01505/0.1941, allocations: 1.731 MB / 360.4 MB, free: 9.332 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000352/0.1945, allocations: 211.2 kB / 360.6 MB, free: 9.082 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.997/2.191, allocations: 0 / 360.6 MB, free: 9.082 MB / 302.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/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) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches