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.001436/0.001436, allocations: 96.25 kB / 20.96 MB, free: 3.469 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.001639/0.001639, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 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 1.503/1.503, allocations: 177 MB / 204.4 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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 2.254e-06/2.254e-06, allocations: 0 / 272.2 MB, free: 1.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.35e-05/3.576e-05, allocations: 6.312 kB / 272.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003547/0.003583, allocations: 1.61 MB / 273.8 MB, free: 172 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.004812, allocations: 494.6 kB / 274.3 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.609e-05/0.004908, allocations: 0 / 274.3 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.868e-05/0.004957, allocations: 11.86 kB / 274.3 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001926/0.00515, allocations: 15.88 kB / 274.3 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000311/0.005461, allocations: 51.8 kB / 274.4 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001542/0.005615, allocations: 67.78 kB / 274.4 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.773e-05/0.005713, allocations: 8 kB / 274.5 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002098/0.005922, allocations: 47.88 kB / 274.5 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.888e-05/0.006001, allocations: 35.89 kB / 274.5 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.789e-05/0.006029, allocations: 4 kB / 274.5 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.802e-05/0.006087, allocations: 8 kB / 274.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.099e-05/0.006118, allocations: 7.938 kB / 274.6 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.55e-05/0.006174, allocations: 23.97 kB / 274.6 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001884/0.006362, allocations: 75.7 kB / 274.7 MB, free: 15.33 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.524e-06/0.006365, allocations: 0 / 274.7 MB, free: 15.33 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.006365, allocations: 0 / 274.7 MB, free: 15.33 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.00637, allocations: 0 / 274.7 MB, free: 15.33 MB / 266.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.0006143/0.006984, allocations: 306 kB / 275 MB, free: 15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.007028, allocations: 15.98 kB / 275 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002848/0.007312, allocations: 24.88 kB / 275 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003032/0.007616, allocations: 133.7 kB / 275.1 MB, free: 14.8 MB / 266.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 0.000118/0.007734, allocations: 30.27 kB / 275.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.007753, allocations: 12.31 kB / 275.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004974/0.00825, allocations: 169.4 kB / 275.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.00826, allocations: 4.188 kB / 275.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.441e-05/0.008284, allocations: 8.125 kB / 275.3 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.008293, allocations: 3.984 kB / 275.3 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001476/0.00844, allocations: 39.91 kB / 275.4 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001959/0.008636, allocations: 118.2 kB / 275.5 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004666/0.009103, allocations: 85.31 kB / 275.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.009222, allocations: 41.64 kB / 275.6 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.009245, allocations: 0 / 275.6 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.009278, allocations: 34.56 kB / 275.7 MB, free: 14.18 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.009279, allocations: 4 kB / 275.7 MB, free: 14.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004157/0.009695, allocations: 125.5 kB / 275.8 MB, free: 14.05 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.511e-05/0.00979, allocations: 89.05 kB / 275.9 MB, free: 13.94 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.009927, allocations: 121.8 kB / 276 MB, free: 13.81 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.531e-05/0.009962, allocations: 29.69 kB / 276 MB, free: 13.78 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.021e-05/0.01002, allocations: 88.14 kB / 276.1 MB, free: 13.69 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.557e-05/0.01005, allocations: 7.953 kB / 276.1 MB, free: 13.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-05/0.01009, allocations: 17.66 kB / 276.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.01028, allocations: 327 kB / 276.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.502e-05/0.01033, allocations: 15.98 kB / 276.5 MB, free: 13.31 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.938e-05/0.01039, allocations: 26.58 kB / 276.5 MB, free: 13.28 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000108/0.0105, allocations: 42.5 kB / 276.5 MB, free: 13.23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.0105, allocations: 0 / 276.5 MB, free: 13.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001869/0.01069, allocations: 85.59 kB / 276.6 MB, free: 13.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.01071, allocations: 4 kB / 276.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.01071, allocations: 4 kB / 276.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.01073, allocations: 0 / 276.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.007e-05/0.0108, allocations: 11.92 kB / 276.6 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.587e-05/0.01081, allocations: 7.938 kB / 276.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.018e-05/0.01087, allocations: 0 / 276.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.01088, allocations: 4 kB / 276.6 MB, free: 13.11 MB / 266.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 0.0001168/0.01099, allocations: 117.8 kB / 276.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.01115, allocations: 77.62 kB / 276.8 MB, free: 12.9 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.339e-05/0.01119, allocations: 12.5 kB / 276.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.01119, allocations: 0 / 276.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.0112, allocations: 7.938 kB / 276.9 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.01121, allocations: 0 / 276.9 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001449/0.01135, allocations: 117.3 kB / 277 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.01135, allocations: 0 / 277 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.474e-05/0.01144, allocations: 15.92 kB / 277 MB, free: 12.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.01144, allocations: 4 kB / 277 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.01145, allocations: 0 / 277 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.01146, allocations: 448 / 277 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.01146, allocations: 0 / 277 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002759/0.01173, allocations: 137.8 kB / 277.1 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.478e-05/0.01179, allocations: 7.953 kB / 277.1 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/0.01182, allocations: 11.98 kB / 277.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.096e-05/0.01189, allocations: 4 kB / 277.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.873e-05/0.01193, allocations: 3.938 kB / 277.2 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.01194, allocations: 7.938 kB / 277.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.456e-05/0.01203, allocations: 102.1 kB / 277.3 MB, free: 12.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01203, allocations: 3.938 kB / 277.3 MB, free: 12.42 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002031/0.01223, allocations: 12 kB / 277.3 MB, free: 12.41 MB / 266.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 0.0001393/0.01237, allocations: 99.25 kB / 277.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002094/0.01258, allocations: 39.98 kB / 277.4 MB, free: 12.27 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.01258, allocations: 3.938 kB / 277.4 MB, free: 12.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.803e-05/0.01262, allocations: 7.984 kB / 277.4 MB, free: 12.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008381/0.01346, allocations: 0.7241 MB / 278.1 MB, free: 11.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004685/0.01392, allocations: 183 kB / 278.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.536e-05/0.01401, allocations: 79.33 kB / 278.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.621e-05/0.01405, allocations: 4 kB / 278.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.697e-05/0.01408, allocations: 8.5 kB / 278.4 MB, free: 11.19 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01408, allocations: 4 kB / 278.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of Templates: time 0.004494/0.01858, allocations: 0.7939 MB / 279.2 MB, free: 10.4 MB / 266.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.352688457001932]