Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001835/0.001835, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.481/1.481, allocations: 177.1 MB / 204.6 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 272.3 MB, free: 1.801 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.607e-05/2.749e-05, allocations: 2.312 kB / 272.3 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00296/0.002988, allocations: 1.614 MB / 273.9 MB, free: 180 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001007/0.003995, allocations: 498.6 kB / 274.4 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.466e-05/0.004059, allocations: 4 kB / 274.4 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.228e-05/0.004091, allocations: 3.938 kB / 274.4 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001642/0.004256, allocations: 15.8 kB / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002452/0.004501, allocations: 47.89 kB / 274.5 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001405/0.004641, allocations: 71.69 kB / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.068e-05/0.004732, allocations: 8 kB / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.004919, allocations: 47.89 kB / 274.6 MB, free: 15.49 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.088e-05/0.00498, allocations: 23.91 kB / 274.6 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.09e-05/0.005001, allocations: 12 kB / 274.7 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.601e-05/0.005047, allocations: 11.98 kB / 274.7 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.776e-05/0.005075, allocations: 15.92 kB / 274.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.507e-05/0.00512, allocations: 15.98 kB / 274.7 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001794/0.005299, allocations: 75.69 kB / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.005303, allocations: 0 / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.005304, allocations: 4 kB / 274.8 MB, free: 15.33 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.005308, allocations: 0 / 274.8 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.0005736/0.005881, allocations: 302 kB / 275.1 MB, free: 15.01 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.00592, allocations: 12.02 kB / 275.1 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002659/0.006186, allocations: 28.88 kB / 275.1 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002422/0.006428, allocations: 129.7 kB / 275.2 MB, free: 14.82 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.000104/0.006532, allocations: 38.25 kB / 275.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.561e-05/0.006548, allocations: 4.375 kB / 275.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004072/0.006955, allocations: 165.4 kB / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.006963, allocations: 192 / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.006979, allocations: 12.12 kB / 275.5 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.006983, allocations: 0 / 275.5 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001545/0.007138, allocations: 31.97 kB / 275.5 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001761/0.007314, allocations: 126.2 kB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002761/0.00759, allocations: 81.25 kB / 275.7 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.007694, allocations: 37.7 kB / 275.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.007716, allocations: 4 kB / 275.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.007748, allocations: 38.5 kB / 275.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.00775, allocations: 4 kB / 275.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003876/0.008137, allocations: 113.5 kB / 275.9 MB, free: 14.08 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.507e-05/0.008222, allocations: 89.05 kB / 276 MB, free: 13.97 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.008353, allocations: 133.6 kB / 276.1 MB, free: 13.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.237e-05/0.008376, allocations: 25.7 kB / 276.1 MB, free: 13.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.548e-05/0.008441, allocations: 96.12 kB / 276.2 MB, free: 13.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.008462, allocations: 3.953 kB / 276.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.993e-05/0.008502, allocations: 17.72 kB / 276.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.008685, allocations: 326.8 kB / 276.6 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.577e-05/0.008731, allocations: 8.125 kB / 276.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.883e-05/0.00879, allocations: 34.81 kB / 276.6 MB, free: 13.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001092/0.008899, allocations: 46.62 kB / 276.6 MB, free: 13.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.008903, allocations: 4 kB / 276.7 MB, free: 13.24 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001827/0.009086, allocations: 77.56 kB / 276.7 MB, free: 13.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.009099, allocations: 8.094 kB / 276.7 MB, free: 13.15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.009103, allocations: 0 / 276.7 MB, free: 13.15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.009118, allocations: 4 kB / 276.7 MB, free: 13.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.537e-05/0.009183, allocations: 7.938 kB / 276.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.00919, allocations: 3.984 kB / 276.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.237e-05/0.009233, allocations: 4 kB / 276.8 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.009238, allocations: 0 / 276.8 MB, free: 13.13 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.0001185/0.009356, allocations: 129.8 kB / 276.9 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/0.009509, allocations: 73.64 kB / 277 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.842e-05/0.009548, allocations: 16.42 kB / 277 MB, free: 12.9 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.00955, allocations: 4 kB / 277 MB, free: 12.9 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.009557, allocations: 3.938 kB / 277 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.009563, allocations: 4 kB / 277 MB, free: 12.89 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.009687, allocations: 113.3 kB / 277.1 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.009689, allocations: 0 / 277.1 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.653e-05/0.009765, allocations: 11.98 kB / 277.1 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.009767, allocations: 0 / 277.1 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.009785, allocations: 11.98 kB / 277.1 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.009787, allocations: 0 / 277.1 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.00979, allocations: 3.938 kB / 277.1 MB, free: 12.72 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002835/0.01007, allocations: 125.9 kB / 277.2 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.877e-05/0.01012, allocations: 15.94 kB / 277.3 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.01014, allocations: 0 / 277.3 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.671e-05/0.01022, allocations: 11.98 kB / 277.3 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.859e-05/0.01026, allocations: 7.938 kB / 277.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.345e-06/0.01027, allocations: 0 / 277.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.724e-05/0.01034, allocations: 99.2 kB / 277.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01034, allocations: 0 / 277.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002043/0.01055, allocations: 12 kB / 277.4 MB, free: 12.43 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.0001335/0.01068, allocations: 107.3 kB / 277.5 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001973/0.01088, allocations: 43.97 kB / 277.5 MB, free: 12.28 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.01088, allocations: 0 / 277.5 MB, free: 12.28 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.423e-05/0.01093, allocations: 11.98 kB / 277.5 MB, free: 12.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008043/0.01173, allocations: 0.7241 MB / 278.3 MB, free: 11.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004227/0.01215, allocations: 174.8 kB / 278.4 MB, free: 11.32 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.526e-05/0.01224, allocations: 83.62 kB / 278.5 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.154e-05/0.01227, allocations: 4 kB / 278.5 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.587e-05/0.0123, allocations: 8.5 kB / 278.5 MB, free: 11.2 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01231, allocations: 0 / 278.5 MB, free: 11.2 MB / 266.7 MB Notification: Performance of Templates: time 0.003443/0.01575, allocations: 0.8023 MB / 279.3 MB, free: 10.41 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.2724573909072205]