Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001932/0.001932, allocations: 92.62 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002345/0.002345, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.584/1.584, allocations: 173.4 MB / 200.8 MB, free: 9.301 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.953e-06/1.953e-06, allocations: 0 / 267.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.35e-05/3.546e-05, allocations: 2.312 kB / 267.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00448/0.004516, allocations: 1.585 MB / 268.9 MB, free: 5.102 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.005776, allocations: 438.7 kB / 269.4 MB, free: 4.668 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.828e-05/0.005875, allocations: 0 / 269.4 MB, free: 4.668 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.655e-05/0.005921, allocations: 7.875 kB / 269.4 MB, free: 4.66 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.006135, allocations: 15.86 kB / 269.4 MB, free: 4.645 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002778/0.006413, allocations: 43.81 kB / 269.4 MB, free: 4.602 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001817/0.006594, allocations: 67.78 kB / 269.5 MB, free: 4.535 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.006713, allocations: 11.98 kB / 269.5 MB, free: 4.523 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00018/0.006893, allocations: 43.84 kB / 269.5 MB, free: 4.48 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.194e-05/0.006984, allocations: 23.95 kB / 269.6 MB, free: 4.457 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.971e-05/0.007014, allocations: 8 kB / 269.6 MB, free: 4.449 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.08e-05/0.007035, allocations: 8 kB / 269.6 MB, free: 4.441 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.878e-05/0.007074, allocations: 11.92 kB / 269.6 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.634e-05/0.00714, allocations: 23.91 kB / 269.6 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001882/0.007328, allocations: 63.78 kB / 269.7 MB, free: 4.344 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.007332, allocations: 0 / 269.7 MB, free: 4.344 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.007334, allocations: 0 / 269.7 MB, free: 4.344 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.007339, allocations: 0 / 269.7 MB, free: 4.344 MB / 250.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.0007814/0.00812, allocations: 302 kB / 270 MB, free: 4.02 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.539e-05/0.008176, allocations: 8.922 kB / 270 MB, free: 4.012 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.964e-05/0.008255, allocations: 16.89 kB / 270 MB, free: 3.996 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000615/0.00887, allocations: 141.5 kB / 270.1 MB, free: 3.832 MB / 250.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.0001316/0.009002, allocations: 34.27 kB / 270.2 MB, free: 3.793 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.333e-05/0.009025, allocations: 4.375 kB / 270.2 MB, free: 3.789 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005626/0.009588, allocations: 161.5 kB / 270.3 MB, free: 3.613 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.009599, allocations: 192 / 270.3 MB, free: 3.613 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.157e-05/0.009621, allocations: 4.125 kB / 270.3 MB, free: 3.609 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.009629, allocations: 8 kB / 270.3 MB, free: 3.602 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002016/0.00983, allocations: 39.89 kB / 270.4 MB, free: 3.562 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002514/0.01008, allocations: 114.2 kB / 270.5 MB, free: 3.418 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004191/0.0105, allocations: 89.25 kB / 270.6 MB, free: 3.312 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001659/0.01067, allocations: 37.7 kB / 270.6 MB, free: 3.27 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.003e-05/0.0107, allocations: 0 / 270.6 MB, free: 3.27 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.631e-05/0.01075, allocations: 34.56 kB / 270.6 MB, free: 3.227 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.01075, allocations: 0 / 270.6 MB, free: 3.227 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0006068/0.01136, allocations: 129.5 kB / 270.8 MB, free: 3.094 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/0.01148, allocations: 89.05 kB / 270.9 MB, free: 2.988 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.01166, allocations: 121.1 kB / 271 MB, free: 2.863 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.216e-05/0.01171, allocations: 29.7 kB / 271 MB, free: 2.828 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.644e-05/0.01179, allocations: 88.12 kB / 271.1 MB, free: 2.738 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.835e-05/0.01183, allocations: 11.95 kB / 271.1 MB, free: 2.727 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.006e-05/0.01189, allocations: 13.72 kB / 271.1 MB, free: 2.707 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002456/0.01214, allocations: 318.8 kB / 271.4 MB, free: 2.387 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.973e-05/0.01222, allocations: 15.94 kB / 271.4 MB, free: 2.371 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.01232, allocations: 34.69 kB / 271.5 MB, free: 2.328 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001558/0.01247, allocations: 38.56 kB / 271.5 MB, free: 2.281 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01248, allocations: 0 / 271.5 MB, free: 2.281 MB / 250.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002858/0.01276, allocations: 77.56 kB / 271.6 MB, free: 2.199 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.01279, allocations: 4 kB / 271.6 MB, free: 2.195 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.0128, allocations: 8.312 kB / 271.6 MB, free: 2.188 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.01282, allocations: 4.094 kB / 271.6 MB, free: 2.184 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.01293, allocations: 11.92 kB / 271.6 MB, free: 2.172 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.01295, allocations: 4 kB / 271.6 MB, free: 2.168 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.559e-05/0.01302, allocations: 8 kB / 271.6 MB, free: 2.16 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.49e-05/0.01304, allocations: 4 kB / 271.6 MB, free: 2.156 MB / 250.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.0001596/0.0132, allocations: 113.8 kB / 271.7 MB, free: 2.035 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002449/0.01344, allocations: 81.56 kB / 271.8 MB, free: 1.949 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.229e-05/0.0135, allocations: 8.438 kB / 271.8 MB, free: 1.938 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.01351, allocations: 0 / 271.8 MB, free: 1.938 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.01352, allocations: 11.94 kB / 271.8 MB, free: 1.926 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.01352, allocations: 0 / 271.8 MB, free: 1.926 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001892/0.01371, allocations: 113.3 kB / 272 MB, free: 1.785 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.01371, allocations: 0 / 272 MB, free: 1.785 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.01384, allocations: 11.98 kB / 272 MB, free: 1.773 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.01384, allocations: 0 / 272 MB, free: 1.773 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.01386, allocations: 11.92 kB / 272 MB, free: 1.762 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.01386, allocations: 0 / 272 MB, free: 1.762 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.01387, allocations: 0 / 272 MB, free: 1.762 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004102/0.01428, allocations: 129.8 kB / 272.1 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.852e-05/0.01434, allocations: 19.94 kB / 272.1 MB, free: 1.594 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.911e-05/0.01439, allocations: 8 kB / 272.1 MB, free: 1.586 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.0145, allocations: 3.984 kB / 272.1 MB, free: 1.582 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.075e-05/0.01455, allocations: 7.938 kB / 272.1 MB, free: 1.574 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.01457, allocations: 0 / 272.1 MB, free: 1.574 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001249/0.01469, allocations: 99.27 kB / 272.2 MB, free: 1.477 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.01469, allocations: 0 / 272.2 MB, free: 1.477 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003886/0.01508, allocations: 8 kB / 272.3 MB, free: 1.469 MB / 250.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.0001853/0.01527, allocations: 103.2 kB / 272.4 MB, free: 1.359 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002991/0.01556, allocations: 51.92 kB / 272.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.01557, allocations: 0 / 272.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.041e-05/0.01563, allocations: 7.984 kB / 272.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.01693, allocations: 0.7205 MB / 273.1 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006151/0.01754, allocations: 170.8 kB / 273.3 MB, free: 368 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001199/0.01766, allocations: 75.64 kB / 273.4 MB, free: 272 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.494e-05/0.01771, allocations: 11.97 kB / 273.4 MB, free: 260 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.952e-05/0.01777, allocations: 16.5 kB / 273.4 MB, free: 240 kB / 250.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01777, allocations: 0 / 273.4 MB, free: 240 kB / 250.7 MB Notification: Performance of Templates: time 0.005049/0.02282, allocations: 0.7901 MB / 274.2 MB, free: 15.45 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.342167383991182]