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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001158/0.001158, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001154/0.001154, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 60.28 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1293, allocations: 50.54 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003325/0.1327, allocations: 1.587 MB / 360.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009859/0.1337, allocations: 0.4987 MB / 361 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.739e-05/0.1338, allocations: 7.938 kB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.698e-05/0.1338, allocations: 3.938 kB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001826/0.134, allocations: 19.86 kB / 361 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002778/0.1343, allocations: 55.31 kB / 361.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000126/0.1344, allocations: 67.83 kB / 361.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.1346, allocations: 15.98 kB / 361.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001536/0.1347, allocations: 39.78 kB / 361.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.473e-05/0.1348, allocations: 39.83 kB / 361.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.696e-05/0.1348, allocations: 4 kB / 361.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.736e-05/0.1349, allocations: 12 kB / 361.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.397e-05/0.1349, allocations: 11.94 kB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.524e-05/0.135, allocations: 35.84 kB / 361.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001341/0.1351, allocations: 63.72 kB / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1351, allocations: 0 / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1351, allocations: 0 / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.1351, allocations: 4 kB / 361.4 MB, free: 10.85 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.0005582/0.1357, allocations: 375.2 kB / 361.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.1357, allocations: 8.031 kB / 361.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002521/0.136, allocations: 28.83 kB / 361.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.1363, allocations: 192.1 kB / 362 MB, free: 10.17 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.0001001/0.1364, allocations: 42.25 kB / 362 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.674e-05/0.1364, allocations: 4.375 kB / 362 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003573/0.1368, allocations: 173 kB / 362.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.1368, allocations: 0 / 362.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.1368, allocations: 0 / 362.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.1368, allocations: 0 / 362.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001255/0.137, allocations: 39.91 kB / 362.2 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001818/0.1372, allocations: 182.4 kB / 362.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002899/0.1375, allocations: 174.4 kB / 362.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.851e-05/0.1376, allocations: 37.7 kB / 362.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.11e-05/0.1376, allocations: 0 / 362.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.1376, allocations: 38.5 kB / 362.6 MB, free: 9.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.1376, allocations: 4 kB / 362.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003262/0.138, allocations: 113.5 kB / 362.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.034e-05/0.1381, allocations: 93.03 kB / 362.8 MB, free: 9.137 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.1382, allocations: 133.4 kB / 363 MB, free: 9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.1382, allocations: 29.7 kB / 363 MB, free: 8.965 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.158e-05/0.1383, allocations: 92.11 kB / 363.1 MB, free: 8.871 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.011e-05/0.1383, allocations: 11.91 kB / 363.1 MB, free: 8.859 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.427e-05/0.1383, allocations: 21.84 kB / 363.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.1385, allocations: 326.8 kB / 363.4 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.316e-05/0.1385, allocations: 11.98 kB / 363.4 MB, free: 8.492 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.265e-05/0.1386, allocations: 58 kB / 363.5 MB, free: 8.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001199/0.1388, allocations: 77.88 kB / 363.6 MB, free: 8.316 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1388, allocations: 4 kB / 363.6 MB, free: 8.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001713/0.1389, allocations: 105.4 kB / 363.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.139, allocations: 4 kB / 363.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.139, allocations: 0 / 363.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.139, allocations: 4 kB / 363.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.493e-05/0.1391, allocations: 19.98 kB / 363.7 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.1391, allocations: 7.938 kB / 363.7 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.735e-05/0.1392, allocations: 4.203 kB / 363.7 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.704e-06/0.1392, allocations: 8 kB / 363.7 MB, free: 8.156 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 9.821e-05/0.1393, allocations: 121.8 kB / 363.9 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.1394, allocations: 73.53 kB / 363.9 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.054e-05/0.1395, allocations: 12.36 kB / 363.9 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1395, allocations: 4 kB / 363.9 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.1395, allocations: 0 / 363.9 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1395, allocations: 0 / 363.9 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001322/0.1396, allocations: 177.6 kB / 364.1 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1396, allocations: 4 kB / 364.1 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.242e-05/0.1397, allocations: 19.92 kB / 364.1 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1397, allocations: 0 / 364.1 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.1397, allocations: 0 / 364.1 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.1397, allocations: 4.312 kB / 364.1 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1398, allocations: 3.938 kB / 364.1 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002047/0.14, allocations: 125.8 kB / 364.3 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.429e-05/0.14, allocations: 101.1 kB / 364.4 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.1401, allocations: 4 kB / 364.4 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.491e-05/0.1401, allocations: 7.938 kB / 364.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.897e-05/0.1402, allocations: 3.938 kB / 364.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.1402, allocations: 7.984 kB / 364.4 MB, free: 7.395 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.31e-05/0.1402, allocations: 103.2 kB / 364.5 MB, free: 7.293 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1403, allocations: 0 / 364.5 MB, free: 7.293 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002001/0.1405, allocations: 8 kB / 364.5 MB, free: 7.285 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.0001316/0.1406, allocations: 103.2 kB / 364.6 MB, free: 7.172 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001901/0.1408, allocations: 55.91 kB / 364.7 MB, free: 7.117 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1408, allocations: 0 / 364.7 MB, free: 7.117 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.78e-05/0.1408, allocations: 11.98 kB / 364.7 MB, free: 7.105 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006303/0.1415, allocations: 0.7146 MB / 365.4 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003943/0.1419, allocations: 179.4 kB / 365.6 MB, free: 6.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.1422, allocations: 0.6934 MB / 366.2 MB, free: 5.441 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.207e-05/0.1423, allocations: 7.984 kB / 366.3 MB, free: 5.434 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.948e-05/0.1423, allocations: 7.438 kB / 366.3 MB, free: 5.426 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1423, allocations: 4 kB / 366.3 MB, free: 5.422 MB / 302.1 MB Notification: Performance of Templates: time 0.003115/0.1454, allocations: 0.7584 MB / 367 MB, free: 4.672 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (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 & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches