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.001768/0.001768, allocations: 103.6 kB / 21.19 MB, free: 0.5234 MB / 14.72 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.002074/0.002074, allocations: 213.9 kB / 24.48 MB, free: 3.836 MB / 14.72 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.456/1.456, allocations: 230.5 MB / 258.1 MB, free: 7.785 MB / 206.1 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 0.002462/0.002462, allocations: 59.91 kB / 379 MB, free: 2.293 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.29, allocations: 53.41 MB / 432.4 MB, free: 6.496 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003008/0.293, allocations: 1.602 MB / 434 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009316/0.294, allocations: 494.7 kB / 434.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.927e-05/0.294, allocations: 0 / 434.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.886e-05/0.294, allocations: 3.938 kB / 434.5 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000148/0.2942, allocations: 23.8 kB / 434.5 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002327/0.2944, allocations: 43.94 kB / 434.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001378/0.2946, allocations: 71.72 kB / 434.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.873e-05/0.2947, allocations: 11.98 kB / 434.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001604/0.2948, allocations: 39.91 kB / 434.7 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.314e-05/0.2949, allocations: 27.84 kB / 434.7 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.065e-05/0.2949, allocations: 8 kB / 434.7 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.012e-05/0.2949, allocations: 7.984 kB / 434.7 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.789e-05/0.295, allocations: 19.92 kB / 434.7 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.754e-05/0.295, allocations: 15.88 kB / 434.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001459/0.2952, allocations: 78.33 kB / 434.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2952, allocations: 0 / 434.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2952, allocations: 0 / 434.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.966e-06/0.2952, allocations: 0 / 434.8 MB, free: 4.062 MB / 334.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.0005309/0.2957, allocations: 306 kB / 435.1 MB, free: 3.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.2957, allocations: 15.98 kB / 435.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002143/0.2959, allocations: 20.88 kB / 435.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000242/0.2962, allocations: 134.4 kB / 435.3 MB, free: 3.543 MB / 334.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 9.675e-05/0.2963, allocations: 42.25 kB / 435.3 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.997e-05/0.2963, allocations: 4.375 kB / 435.3 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003796/0.2967, allocations: 173 kB / 435.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.2967, allocations: 0 / 435.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.2967, allocations: 0 / 435.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.2967, allocations: 0 / 435.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.2968, allocations: 35.97 kB / 435.5 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001528/0.297, allocations: 122.2 kB / 435.7 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002624/0.2972, allocations: 89.25 kB / 435.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.183e-05/0.2973, allocations: 37.64 kB / 435.8 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.2974, allocations: 8 kB / 435.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.2974, allocations: 38.5 kB / 435.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.2974, allocations: 0 / 435.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003365/0.2977, allocations: 113.5 kB / 435.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.213e-05/0.2978, allocations: 89.05 kB / 436 MB, free: 2.691 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.2979, allocations: 124.9 kB / 436.2 MB, free: 2.562 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.2979, allocations: 25.7 kB / 436.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.026e-05/0.298, allocations: 92.14 kB / 436.3 MB, free: 2.438 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.162e-05/0.298, allocations: 8.062 kB / 436.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.693e-05/0.298, allocations: 29.66 kB / 436.3 MB, free: 2.395 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.2982, allocations: 318.8 kB / 436.6 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.061e-05/0.2982, allocations: 19.98 kB / 436.6 MB, free: 2.055 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.49e-05/0.2983, allocations: 54 kB / 436.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001391/0.2985, allocations: 85.88 kB / 436.8 MB, free: 1.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2985, allocations: 0 / 436.8 MB, free: 1.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000181/0.2986, allocations: 97.5 kB / 436.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.2987, allocations: 7.938 kB / 436.9 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.629e-06/0.2987, allocations: 7.984 kB / 436.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.2987, allocations: 0 / 436.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.236e-05/0.2988, allocations: 24.14 kB / 436.9 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.365e-06/0.2988, allocations: 4 kB / 436.9 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.032e-05/0.2988, allocations: 4 kB / 436.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.2988, allocations: 8.25 kB / 436.9 MB, free: 1.719 MB / 334.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.0001079/0.2989, allocations: 121.8 kB / 437 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.2991, allocations: 81.52 kB / 437.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.8e-05/0.2991, allocations: 12.38 kB / 437.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.2991, allocations: 0 / 437.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.2991, allocations: 0 / 437.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.2991, allocations: 7.984 kB / 437.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001086/0.2992, allocations: 113.3 kB / 437.2 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2992, allocations: 0 / 437.2 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.301e-05/0.2993, allocations: 16.17 kB / 437.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.2993, allocations: 0 / 437.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.2993, allocations: 11.88 kB / 437.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.2993, allocations: 0 / 437.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2993, allocations: 0 / 437.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002309/0.2996, allocations: 121.8 kB / 437.4 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.884e-05/0.2996, allocations: 15.94 kB / 437.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.514e-05/0.2996, allocations: 7.938 kB / 437.4 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.383e-05/0.2997, allocations: 12 kB / 437.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.956e-05/0.2997, allocations: 0 / 437.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.2997, allocations: 11.92 kB / 437.4 MB, free: 1.125 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.781e-05/0.2998, allocations: 99.27 kB / 437.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2998, allocations: 0 / 437.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002014/0.3, allocations: 8 kB / 437.5 MB, free: 1.02 MB / 334.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.0001194/0.3001, allocations: 99.25 kB / 437.6 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001901/0.3003, allocations: 64.22 kB / 437.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3003, allocations: 0 / 437.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.562e-05/0.3003, allocations: 8 kB / 437.7 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007201/0.3011, allocations: 0.7258 MB / 438.4 MB, free: 96 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004178/0.3015, allocations: 205.3 kB / 438.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.081e-05/0.3016, allocations: 75.98 kB / 438.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.353e-05/0.3016, allocations: 15.62 kB / 438.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3016, allocations: 0 / 438.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of Templates: time 0.00268/0.3043, allocations: 1.01 MB / 439.7 MB, free: 14.75 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.799827067181468]