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.001423/0.001429, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001662/0.001662, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.456/1.456, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001432, allocations: 48.61 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1348, allocations: 49.44 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003584/0.1384, allocations: 1.577 MB / 351.7 MB, free: 2.719 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008708/0.1394, allocations: 456.4 kB / 352.2 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.1395, allocations: 3.938 kB / 352.2 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.575e-05/0.1396, allocations: 3.938 kB / 352.2 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001816/0.1398, allocations: 11.88 kB / 352.2 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002408/0.14, allocations: 37.33 kB / 352.2 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001213/0.1401, allocations: 67.78 kB / 352.3 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.1403, allocations: 23.95 kB / 352.3 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.1404, allocations: 31.86 kB / 352.4 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.552e-05/0.1405, allocations: 35.83 kB / 352.4 MB, free: 2.059 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.575e-05/0.1405, allocations: 4 kB / 352.4 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.91e-05/0.1406, allocations: 8 kB / 352.4 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.202e-05/0.1406, allocations: 15.92 kB / 352.4 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.25e-05/0.1407, allocations: 31.81 kB / 352.5 MB, free: 2 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001318/0.1408, allocations: 55.78 kB / 352.5 MB, free: 1.945 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1408, allocations: 0 / 352.5 MB, free: 1.945 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1408, allocations: 0 / 352.5 MB, free: 1.945 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.87e-06/0.1409, allocations: 4 kB / 352.5 MB, free: 1.941 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.0006139/0.1415, allocations: 367.5 kB / 352.9 MB, free: 1.535 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.1415, allocations: 12.03 kB / 352.9 MB, free: 1.523 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.525e-05/0.1416, allocations: 38.73 kB / 352.9 MB, free: 1.477 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.852e-05/0.1417, allocations: 12.84 kB / 352.9 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002184/0.1419, allocations: 196.2 kB / 353.1 MB, free: 1.234 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.0001967/0.1421, allocations: 42.25 kB / 353.2 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/0.1421, allocations: 384 / 353.2 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004152/0.1425, allocations: 164.8 kB / 353.3 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.1426, allocations: 7.938 kB / 353.3 MB, free: 1 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.1426, allocations: 8 kB / 353.3 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.1426, allocations: 0 / 353.3 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001412/0.1427, allocations: 35.97 kB / 353.4 MB, free: 0.957 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002123/0.143, allocations: 174.5 kB / 353.6 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003226/0.1433, allocations: 170.4 kB / 353.7 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.1434, allocations: 45.64 kB / 353.8 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.1434, allocations: 11.88 kB / 353.8 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.58e-05/0.1435, allocations: 34.56 kB / 353.8 MB, free: 436 kB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.1435, allocations: 0 / 353.8 MB, free: 436 kB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003668/0.1438, allocations: 113.6 kB / 353.9 MB, free: 316 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.366e-05/0.144, allocations: 89.14 kB / 354 MB, free: 208 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.1441, allocations: 129.1 kB / 354.1 MB, free: 72 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/0.1441, allocations: 25.7 kB / 354.2 MB, free: 40 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.389e-05/0.1442, allocations: 88.14 kB / 354.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.7e-05/0.1442, allocations: 11.89 kB / 354.3 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.546e-05/0.1443, allocations: 21.72 kB / 354.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1444, allocations: 318.8 kB / 354.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.571e-05/0.1445, allocations: 16 kB / 354.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.877e-05/0.1446, allocations: 61.98 kB / 354.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001624/0.1447, allocations: 81.88 kB / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1448, allocations: 0 / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000201/0.145, allocations: 105.5 kB / 354.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.145, allocations: 4 kB / 354.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.145, allocations: 4 kB / 354.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.145, allocations: 0 / 354.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.298e-05/0.1451, allocations: 19.92 kB / 354.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.1451, allocations: 4 kB / 354.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.982e-05/0.1452, allocations: 11.84 kB / 354.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.1452, allocations: 4 kB / 354.9 MB, free: 15.23 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.0001116/0.1453, allocations: 122 kB / 355 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.1455, allocations: 77.86 kB / 355.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.154e-05/0.1455, allocations: 12.38 kB / 355.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1455, allocations: 0 / 355.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.1456, allocations: 4 kB / 355.1 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.1456, allocations: 3.984 kB / 355.1 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001651/0.1457, allocations: 177.5 kB / 355.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.1458, allocations: 11.86 kB / 355.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.863e-05/0.1458, allocations: 8.188 kB / 355.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.1459, allocations: 0 / 355.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.1459, allocations: 11.92 kB / 355.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.1459, allocations: 4 kB / 355.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1459, allocations: 0 / 355.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002194/0.1461, allocations: 117.9 kB / 355.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.64e-05/0.1462, allocations: 92.94 kB / 355.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.807e-05/0.1462, allocations: 4 kB / 355.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.325e-05/0.1463, allocations: 11.98 kB / 355.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.666e-05/0.1464, allocations: 0 / 355.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.1464, allocations: 4 kB / 355.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.396e-05/0.1464, allocations: 99.27 kB / 355.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1465, allocations: 0 / 355.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002178/0.1467, allocations: 8 kB / 355.6 MB, free: 14.37 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.0007669/0.1474, allocations: 0.7029 MB / 356.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002407/0.1477, allocations: 55.91 kB / 356.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.1477, allocations: 0 / 356.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.632e-05/0.1478, allocations: 15.98 kB / 356.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007512/0.1485, allocations: 0.7262 MB / 357.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/0.1503, allocations: 1.399 MB / 358.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003376/0.1506, allocations: 0.6885 MB / 359.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.553e-05/0.1507, allocations: 7.984 kB / 359.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.801e-05/0.1507, allocations: 19.44 kB / 359.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1507, allocations: 4 kB / 359.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02234/0.1731, allocations: 1.891 MB / 361.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.776/7.949, allocations: 7.812 kB / 361.2 MB, free: 8.742 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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) "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,sine.y,sineRef.y,periodicClock1.period