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.001395/0.001395, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001617/0.001617, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 67.66 kB / 307.1 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1246, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003956/0.1286, allocations: 1.594 MB / 359.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.1298, allocations: 0.5103 MB / 359.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001146/0.13, allocations: 7.938 kB / 359.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.785e-05/0.13, allocations: 3.938 kB / 359.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002016/0.1302, allocations: 15.86 kB / 359.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003449/0.1306, allocations: 47.89 kB / 359.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001493/0.1308, allocations: 67.83 kB / 359.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.1309, allocations: 11.97 kB / 359.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002096/0.1311, allocations: 39.8 kB / 359.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.092e-05/0.1312, allocations: 39.83 kB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.429e-05/0.1312, allocations: 8 kB / 359.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.298e-05/0.1313, allocations: 4 kB / 359.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.417e-05/0.1314, allocations: 19.92 kB / 360 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.966e-05/0.1314, allocations: 27.86 kB / 360 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001787/0.1316, allocations: 63.78 kB / 360 MB, free: 11.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.076e-05/0.1316, allocations: 0 / 360 MB, free: 11.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1316, allocations: 3.938 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.1317, allocations: 0 / 360 MB, free: 11.55 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.0007153/0.1324, allocations: 391.4 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.1324, allocations: 8.031 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.24e-05/0.1325, allocations: 38.75 kB / 360.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002932/0.1328, allocations: 20.83 kB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/0.1331, allocations: 188.2 kB / 360.7 MB, free: 10.83 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.0001935/0.1333, allocations: 34.25 kB / 360.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/0.1333, allocations: 4.375 kB / 360.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004516/0.1337, allocations: 164.9 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.1338, allocations: 4 kB / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.1338, allocations: 7.938 kB / 360.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.1338, allocations: 3.984 kB / 360.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.1339, allocations: 31.92 kB / 360.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002555/0.1342, allocations: 194.4 kB / 361.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003346/0.1346, allocations: 166.4 kB / 361.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.1347, allocations: 37.7 kB / 361.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.932e-05/0.1347, allocations: 11.92 kB / 361.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.1347, allocations: 34.56 kB / 361.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.1348, allocations: 0 / 361.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003717/0.1351, allocations: 113.5 kB / 361.5 MB, free: 9.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.048e-05/0.1352, allocations: 85.11 kB / 361.6 MB, free: 9.801 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.1353, allocations: 124.5 kB / 361.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.1354, allocations: 29.7 kB / 361.7 MB, free: 9.637 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.969e-05/0.1354, allocations: 96.2 kB / 361.8 MB, free: 9.539 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.218e-05/0.1355, allocations: 11.89 kB / 361.8 MB, free: 9.527 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.555e-05/0.1356, allocations: 21.72 kB / 361.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.1357, allocations: 318.8 kB / 362.1 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.987e-05/0.1358, allocations: 19.94 kB / 362.2 MB, free: 9.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.937e-05/0.1359, allocations: 58 kB / 362.2 MB, free: 9.082 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001498/0.136, allocations: 77.92 kB / 362.3 MB, free: 8.984 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.136, allocations: 0 / 362.3 MB, free: 8.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001899/0.1362, allocations: 105.3 kB / 362.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.1363, allocations: 10.81 kB / 362.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.1363, allocations: 0 / 362.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.1363, allocations: 4 kB / 362.4 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.45e-05/0.1364, allocations: 20.2 kB / 362.4 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.908e-06/0.1364, allocations: 7.938 kB / 362.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.207e-05/0.1365, allocations: 4 kB / 362.4 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.297e-06/0.1365, allocations: 4 kB / 362.4 MB, free: 8.828 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.0001179/0.1366, allocations: 121.8 kB / 362.6 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.1367, allocations: 81.52 kB / 362.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.121e-05/0.1368, allocations: 8.375 kB / 362.7 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1368, allocations: 192 / 362.7 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1368, allocations: 0 / 362.7 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1368, allocations: 7.938 kB / 362.7 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/0.137, allocations: 181.9 kB / 362.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.137, allocations: 7.938 kB / 362.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.552e-05/0.1371, allocations: 15.92 kB / 362.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.1371, allocations: 4 kB / 362.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.1371, allocations: 3.984 kB / 362.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1371, allocations: 0 / 362.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.1371, allocations: 0 / 362.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002606/0.1374, allocations: 121.9 kB / 363 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.539e-05/0.1375, allocations: 100.8 kB / 363.1 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.799e-05/0.1375, allocations: 8 kB / 363.1 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.045e-05/0.1376, allocations: 7.984 kB / 363.1 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.484e-05/0.1376, allocations: 0 / 363.1 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.1376, allocations: 7.938 kB / 363.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.983e-05/0.1377, allocations: 95.27 kB / 363.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1377, allocations: 0 / 363.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002144/0.1379, allocations: 12 kB / 363.2 MB, free: 7.953 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.0006927/0.1386, allocations: 0.6913 MB / 363.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002119/0.1389, allocations: 64.09 kB / 364 MB, free: 7.164 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1389, allocations: 0 / 364 MB, free: 7.164 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.046e-05/0.1389, allocations: 7.984 kB / 364 MB, free: 7.156 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007371/0.1397, allocations: 0.7205 MB / 364.7 MB, free: 6.414 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.1413, allocations: 1.408 MB / 366.1 MB, free: 4.875 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.1417, allocations: 0.6973 MB / 366.8 MB, free: 4.152 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.262e-05/0.1417, allocations: 4 kB / 366.8 MB, free: 4.148 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.841e-05/0.1418, allocations: 27.42 kB / 366.8 MB, free: 4.121 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1418, allocations: 0 / 366.8 MB, free: 4.121 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02359/0.1654, allocations: 1.925 MB / 368.8 MB, free: 2.289 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.569/7.734, allocations: 3.938 kB / 368.8 MB, free: 2.285 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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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