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.002162/0.002162, allocations: 83.69 kB / 20.96 MB, free: 3.316 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.003311/0.003311, allocations: 161.3 kB / 24.27 MB, free: 8 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.65/1.65, allocations: 177.1 MB / 204.6 MB, free: 5.602 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.573e-06/1.573e-06, allocations: 0 / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.699e-05/2.856e-05, allocations: 2.312 kB / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003136/0.003165, allocations: 1.617 MB / 273.9 MB, free: 192 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.004252, allocations: 0.4947 MB / 274.4 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.294e-05/0.004325, allocations: 0 / 274.4 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.378e-05/0.004359, allocations: 7.922 kB / 274.4 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001791/0.004538, allocations: 23.8 kB / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002648/0.004803, allocations: 43.88 kB / 274.5 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001656/0.004968, allocations: 71.77 kB / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.301e-05/0.005061, allocations: 8 kB / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002081/0.005269, allocations: 51.83 kB / 274.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.891e-05/0.005338, allocations: 27.89 kB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.216e-05/0.00536, allocations: 8 kB / 274.7 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.429e-05/0.005405, allocations: 8 kB / 274.7 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.112e-05/0.005436, allocations: 15.92 kB / 274.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.446e-05/0.00548, allocations: 15.98 kB / 274.7 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001901/0.00567, allocations: 71.77 kB / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.005674, allocations: 0 / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.005675, allocations: 0 / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.005679, allocations: 0 / 274.8 MB, free: 15.34 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.0006968/0.006376, allocations: 407.9 kB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.006424, allocations: 15.97 kB / 275.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002634/0.006687, allocations: 24.88 kB / 275.2 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002483/0.006935, allocations: 136.5 kB / 275.4 MB, free: 14.71 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.000115/0.007051, allocations: 42.25 kB / 275.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.007069, allocations: 4.375 kB / 275.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004407/0.00751, allocations: 180.7 kB / 275.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.007521, allocations: 192 / 275.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.007537, allocations: 4.125 kB / 275.6 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.007543, allocations: 4 kB / 275.6 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001382/0.007681, allocations: 27.98 kB / 275.6 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000234/0.007915, allocations: 144.3 kB / 275.8 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003426/0.008258, allocations: 110.2 kB / 275.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.00837, allocations: 43.36 kB / 275.9 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.008395, allocations: 0 / 275.9 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.085e-05/0.008436, allocations: 37.39 kB / 275.9 MB, free: 14.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.008437, allocations: 0 / 275.9 MB, free: 14.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004787/0.008915, allocations: 117.5 kB / 276.1 MB, free: 13.89 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.009016, allocations: 92.98 kB / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001796/0.009195, allocations: 197.5 kB / 276.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/0.009217, allocations: 25.7 kB / 276.4 MB, free: 13.54 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.599e-05/0.009313, allocations: 138.9 kB / 276.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.956e-05/0.009343, allocations: 11.94 kB / 276.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.893e-05/0.009392, allocations: 23.38 kB / 276.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003152/0.009707, allocations: 0.4884 MB / 277 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.758e-05/0.009755, allocations: 15.92 kB / 277 MB, free: 12.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.271e-05/0.009817, allocations: 35.06 kB / 277.1 MB, free: 12.8 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001052/0.009923, allocations: 55.11 kB / 277.1 MB, free: 12.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.009925, allocations: 384 / 277.1 MB, free: 12.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001521/0.01008, allocations: 73.58 kB / 277.2 MB, free: 12.65 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.01009, allocations: 8 kB / 277.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-06/0.0101, allocations: 3.984 kB / 277.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.01012, allocations: 7.984 kB / 277.2 MB, free: 12.63 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.83e-05/0.01019, allocations: 16.03 kB / 277.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.01019, allocations: 0 / 277.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.368e-05/0.01023, allocations: 0 / 277.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.757e-06/0.01024, allocations: 4 kB / 277.2 MB, free: 12.61 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.0001357/0.01037, allocations: 160.6 kB / 277.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001634/0.01054, allocations: 81.56 kB / 277.5 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.629e-05/0.01058, allocations: 12.44 kB / 277.5 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.381e-06/0.01059, allocations: 3.984 kB / 277.5 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.01059, allocations: 3.938 kB / 277.5 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.0106, allocations: 0 / 277.5 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001441/0.01074, allocations: 136.6 kB / 277.6 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.01074, allocations: 0 / 277.6 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.33e-05/0.01082, allocations: 8 kB / 277.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.01082, allocations: 3.984 kB / 277.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.01084, allocations: 8 kB / 277.7 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.01084, allocations: 0 / 277.7 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.01084, allocations: 0 / 277.7 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002635/0.0111, allocations: 139.9 kB / 277.8 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.988e-05/0.01114, allocations: 11.94 kB / 277.8 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.738e-05/0.01117, allocations: 8 kB / 277.8 MB, free: 11.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.276e-05/0.01123, allocations: 4 kB / 277.8 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.01128, allocations: 11.92 kB / 277.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.01129, allocations: 4 kB / 277.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001044/0.0114, allocations: 143.2 kB / 278 MB, free: 11.81 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0114, allocations: 3.938 kB / 278 MB, free: 11.8 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002034/0.0116, allocations: 12 kB / 278 MB, free: 11.79 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.000135/0.01174, allocations: 95.25 kB / 278.1 MB, free: 11.69 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001959/0.01193, allocations: 51.72 kB / 278.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.01193, allocations: 192 / 278.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.305e-05/0.01198, allocations: 19.69 kB / 278.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.01299, allocations: 1.079 MB / 279.2 MB, free: 10.51 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004705/0.01346, allocations: 195.2 kB / 279.4 MB, free: 10.29 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.906e-05/0.01355, allocations: 75.33 kB / 279.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.82e-05/0.01357, allocations: 4 kB / 279.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.5e-05/0.01361, allocations: 12.62 kB / 279.5 MB, free: 10.18 MB / 266.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01361, allocations: 0 / 279.5 MB, free: 10.18 MB / 266.7 MB Notification: Performance of Templates: time 0.003976/0.01758, allocations: 0.8037 MB / 280.3 MB, free: 9.379 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 240] 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.637762789032422]