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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008403/0.0008403, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003053/0.003053, allocations: 161 kB / 24.7 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8697/0.8697, allocations: 177 MB / 204.9 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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=5011,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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 325.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.71e-05/2.873e-05, allocations: 2.281 kB / 325.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002107/0.002136, allocations: 1.607 MB / 327.4 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006449/0.002781, allocations: 486.7 kB / 327.9 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.547e-05/0.002846, allocations: 0 / 327.9 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.906e-05/0.002875, allocations: 11.88 kB / 327.9 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.003026, allocations: 15.88 kB / 327.9 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.00324, allocations: 55.8 kB / 328 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001055/0.003345, allocations: 67.78 kB / 328 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.503e-05/0.00344, allocations: 11.98 kB / 328 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001541/0.003594, allocations: 47.89 kB / 328.1 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.973e-05/0.003644, allocations: 27.89 kB / 328.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.762e-05/0.003662, allocations: 4 kB / 328.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.627e-05/0.003698, allocations: 12 kB / 328.1 MB, free: 13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.161e-05/0.00372, allocations: 19.92 kB / 328.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.901e-05/0.003749, allocations: 11.94 kB / 328.2 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001365/0.003885, allocations: 79.69 kB / 328.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.003887, allocations: 0 / 328.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.003889, allocations: 3.938 kB / 328.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.788e-06/0.003893, allocations: 0 / 328.2 MB, free: 12.89 MB / 298.7 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.0004069/0.0043, allocations: 302 kB / 328.5 MB, free: 12.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.004336, allocations: 15.98 kB / 328.5 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/0.004485, allocations: 20.88 kB / 328.6 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000184/0.004669, allocations: 132.7 kB / 328.7 MB, free: 12.38 MB / 298.7 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 8.985e-05/0.004759, allocations: 38.25 kB / 328.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.306e-05/0.004772, allocations: 8.375 kB / 328.7 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002796/0.005051, allocations: 165.4 kB / 328.9 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.005059, allocations: 192 / 328.9 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.005072, allocations: 8.125 kB / 328.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.005077, allocations: 0 / 328.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.763e-05/0.005154, allocations: 39.97 kB / 328.9 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001184/0.005273, allocations: 126.1 kB / 329.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001897/0.005462, allocations: 93.19 kB / 329.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.612e-05/0.005518, allocations: 41.7 kB / 329.2 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.005538, allocations: 0 / 329.2 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.901e-05/0.005557, allocations: 42.48 kB / 329.2 MB, free: 11.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.005557, allocations: 0 / 329.2 MB, free: 11.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002195/0.005777, allocations: 113.6 kB / 329.4 MB, free: 11.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.244e-05/0.005839, allocations: 88.98 kB / 329.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.822e-05/0.005908, allocations: 125.8 kB / 329.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.005921, allocations: 29.7 kB / 329.6 MB, free: 11.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.089e-05/0.005951, allocations: 88.14 kB / 329.7 MB, free: 11.26 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.887e-05/0.00597, allocations: 7.891 kB / 329.7 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.75e-05/0.005998, allocations: 21.7 kB / 329.7 MB, free: 11.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.426e-05/0.006072, allocations: 318.8 kB / 330 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.766e-05/0.0061, allocations: 7.984 kB / 330 MB, free: 10.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.083e-05/0.006131, allocations: 38.69 kB / 330.1 MB, free: 10.85 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.763e-05/0.006188, allocations: 46.5 kB / 330.1 MB, free: 10.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.00619, allocations: 0 / 330.1 MB, free: 10.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.358e-05/0.006273, allocations: 69.58 kB / 330.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.006287, allocations: 8 kB / 330.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.006291, allocations: 0 / 330.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.006302, allocations: 4.094 kB / 330.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.785e-05/0.00635, allocations: 15.92 kB / 330.2 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.006355, allocations: 0 / 330.2 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.036e-05/0.006375, allocations: 4 kB / 330.2 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-06/0.00638, allocations: 0 / 330.2 MB, free: 10.69 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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 5.927e-05/0.006439, allocations: 113.8 kB / 330.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.482e-05/0.006514, allocations: 81.56 kB / 330.4 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.271e-05/0.006547, allocations: 8.438 kB / 330.4 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.006549, allocations: 0 / 330.4 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.006554, allocations: 8.375 kB / 330.4 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.006556, allocations: 4 kB / 330.4 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.566e-05/0.006622, allocations: 117.3 kB / 330.5 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.006625, allocations: 4 kB / 330.5 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.861e-05/0.006663, allocations: 11.98 kB / 330.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.006666, allocations: 4 kB / 330.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.006674, allocations: 0 / 330.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.006676, allocations: 0 / 330.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.006677, allocations: 0 / 330.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001331/0.00681, allocations: 137.7 kB / 330.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.041e-05/0.00684, allocations: 19.92 kB / 330.7 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.006855, allocations: 7.938 kB / 330.7 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.933e-05/0.006885, allocations: 8 kB / 330.7 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.542e-05/0.00691, allocations: 3.938 kB / 330.7 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-06/0.006917, allocations: 7.984 kB / 330.7 MB, free: 10.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.889e-05/0.006956, allocations: 99.27 kB / 330.8 MB, free: 9.996 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006956, allocations: 0 / 330.8 MB, free: 9.996 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001227/0.007079, allocations: 8 kB / 330.8 MB, free: 9.988 MB / 298.7 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 8.089e-05/0.00716, allocations: 99.19 kB / 330.9 MB, free: 9.879 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001128/0.007273, allocations: 51.91 kB / 331 MB, free: 9.828 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.007274, allocations: 0 / 331 MB, free: 9.828 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.761e-05/0.007292, allocations: 8 kB / 331 MB, free: 9.82 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004303/0.007722, allocations: 0.7141 MB / 331.7 MB, free: 9.082 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002923/0.008014, allocations: 199.2 kB / 331.9 MB, free: 8.852 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.866e-05/0.008063, allocations: 79.39 kB / 332 MB, free: 8.754 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.981e-05/0.008093, allocations: 20.5 kB / 332 MB, free: 8.734 MB / 298.7 MB Notification: Performance of SimCode: time 4.71e-07/0.008093, allocations: 0 / 332 MB, free: 8.734 MB / 298.7 MB Notification: Performance of Templates: time 0.001762/0.009855, allocations: 0.9713 MB / 333 MB, free: 7.766 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.1676992531865835]