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.0007693/0.0007693, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001331/0.002101, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0007386/0.0007386, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001123/0.001861, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9955/0.9955, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07985/1.075, allocations: 52.5 MB / 238.3 MB, free: 4.426 MB / 234.7 MB " [Timeout remaining time 179] 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.533e-06/1.533e-06, allocations: 0 / 239.6 MB, free: 3.168 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.957e-05/2.11e-05, allocations: 2.312 kB / 239.6 MB, free: 3.164 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002433/0.002454, allocations: 1.674 MB / 241.2 MB, free: 1.48 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005927/0.003047, allocations: 460.3 kB / 241.7 MB, free: 1.027 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.721e-05/0.003104, allocations: 4 kB / 241.7 MB, free: 1.023 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 2.422e-05/0.003128, allocations: 3.938 kB / 241.7 MB, free: 1.02 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.891e-05/0.003207, allocations: 19.78 kB / 241.7 MB, free: 1 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.004378, allocations: 39.89 kB / 241.7 MB, free: 0.9609 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001168/0.004495, allocations: 63.78 kB / 241.8 MB, free: 0.8984 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.57e-05/0.00457, allocations: 8 kB / 241.8 MB, free: 0.8906 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.004705, allocations: 47.89 kB / 241.9 MB, free: 0.8438 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.354e-05/0.004759, allocations: 31.89 kB / 241.9 MB, free: 0.8125 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.31e-05/0.004782, allocations: 4 kB / 241.9 MB, free: 0.8086 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.182e-05/0.004794, allocations: 8 kB / 241.9 MB, free: 0.8008 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 2.429e-05/0.004818, allocations: 7.938 kB / 241.9 MB, free: 0.793 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.302e-05/0.004851, allocations: 15.94 kB / 241.9 MB, free: 0.7773 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.004963, allocations: 43.78 kB / 242 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.601e-05/0.004979, allocations: 0 / 242 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.00498, allocations: 0 / 242 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.657e-05/0.004997, allocations: 0 / 242 MB, free: 0.7344 MB / 234.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.0004363/0.005433, allocations: 292.3 kB / 242.3 MB, free: 436 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.944e-05/0.005463, allocations: 12.03 kB / 242.3 MB, free: 424 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.084e-05/0.005493, allocations: 4.938 kB / 242.3 MB, free: 420 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001559/0.005649, allocations: 145.6 kB / 242.4 MB, free: 248 kB / 234.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 8.577e-05/0.005735, allocations: 42.19 kB / 242.5 MB, free: 200 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.194e-05/0.005747, allocations: 8.375 kB / 242.5 MB, free: 192 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002266/0.005974, allocations: 150.1 kB / 242.6 MB, free: 20 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.005981, allocations: 192 / 242.6 MB, free: 20 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.005992, allocations: 12.12 kB / 242.6 MB, free: 8 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.005997, allocations: 0 / 242.6 MB, free: 8 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.775e-05/0.006055, allocations: 19.98 kB / 242.6 MB, free: 15.98 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.845e-05/0.006143, allocations: 65.84 kB / 242.7 MB, free: 15.91 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001734/0.006316, allocations: 69.2 kB / 242.8 MB, free: 15.82 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.732e-05/0.006354, allocations: 29.7 kB / 242.8 MB, free: 15.79 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.955e-05/0.006373, allocations: 3.938 kB / 242.8 MB, free: 15.78 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.006399, allocations: 38.5 kB / 242.8 MB, free: 15.73 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.0064, allocations: 0 / 242.8 MB, free: 15.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001512/0.006551, allocations: 73.61 kB / 242.9 MB, free: 15.66 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/0.006606, allocations: 85.09 kB / 243 MB, free: 15.55 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.148e-05/0.006678, allocations: 130.6 kB / 243.1 MB, free: 15.41 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.006689, allocations: 25.7 kB / 243.2 MB, free: 15.38 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.531e-05/0.006715, allocations: 84.14 kB / 243.2 MB, free: 15.3 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.005e-05/0.006735, allocations: 7.938 kB / 243.2 MB, free: 15.29 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.165e-05/0.006766, allocations: 21.7 kB / 243.3 MB, free: 15.26 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.938e-05/0.006846, allocations: 318.8 kB / 243.6 MB, free: 14.94 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.166e-05/0.006857, allocations: 4 kB / 243.6 MB, free: 14.94 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.98e-05/0.006877, allocations: 22.56 kB / 243.6 MB, free: 14.91 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.114e-05/0.006918, allocations: 35 kB / 243.6 MB, free: 14.86 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.00692, allocations: 0 / 243.6 MB, free: 14.86 MB / 250.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.758e-05/0.006988, allocations: 53.62 kB / 243.7 MB, free: 14.8 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.007, allocations: 4 kB / 243.7 MB, free: 14.8 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.007007, allocations: 8 kB / 243.7 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.957e-06/0.007016, allocations: 0 / 243.7 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.722e-05/0.007083, allocations: 7.984 kB / 243.7 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-06/0.007086, allocations: 8.094 kB / 243.7 MB, free: 14.78 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.425e-05/0.00711, allocations: 3.938 kB / 243.7 MB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003012/0.01012, allocations: 4 kB / 243.7 MB, free: 14.77 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 8.364e-05/0.01021, allocations: 117.8 kB / 243.8 MB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.158e-05/0.01028, allocations: 53.67 kB / 243.9 MB, free: 14.59 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.537e-05/0.01031, allocations: 8.438 kB / 243.9 MB, free: 14.57 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.01031, allocations: 0 / 243.9 MB, free: 14.57 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.01032, allocations: 4 kB / 243.9 MB, free: 14.57 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.01032, allocations: 7.922 kB / 243.9 MB, free: 14.56 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.715e-05/0.0104, allocations: 77.83 kB / 244 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.0104, allocations: 7.938 kB / 244 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.859e-05/0.01046, allocations: 11.98 kB / 244 MB, free: 14.45 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.916e-05/0.01049, allocations: 8 kB / 244 MB, free: 14.44 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.01049, allocations: 7.938 kB / 244 MB, free: 14.43 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.0105, allocations: 3.984 kB / 244 MB, free: 14.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.0105, allocations: 3.984 kB / 244 MB, free: 14.43 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.01051, allocations: 0 / 244 MB, free: 14.43 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.122e-05/0.01057, allocations: 61.94 kB / 244.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.01058, allocations: 11.98 kB / 244.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.52e-05/0.01062, allocations: 4 kB / 244.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.326e-05/0.01064, allocations: 4.031 kB / 244.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.242e-06/0.01065, allocations: 0 / 244.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.339e-05/0.01067, allocations: 28.83 kB / 244.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01067, allocations: 0 / 244.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001448/0.01082, allocations: 8 kB / 244.1 MB, free: 14.29 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.0001056/0.01092, allocations: 88.34 kB / 244.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.346e-05/0.01101, allocations: 28.86 kB / 244.3 MB, free: 14.16 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/0.01102, allocations: 4 kB / 244.3 MB, free: 14.16 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.343e-05/0.01103, allocations: 12.97 kB / 244.3 MB, free: 14.14 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004317/0.01146, allocations: 0.7164 MB / 245 MB, free: 13.4 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008247/0.01229, allocations: 186.7 kB / 245.2 MB, free: 13.19 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.01257, allocations: 63.34 kB / 245.2 MB, free: 13.11 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.416e-05/0.01259, allocations: 3.984 kB / 245.2 MB, free: 13.1 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.901e-05/0.01264, allocations: 51.38 kB / 245.3 MB, free: 13.05 MB / 250.7 MB Notification: Performance of SimCode: time 1.022e-06/0.01264, allocations: 8.062 kB / 245.3 MB, free: 13.04 MB / 250.7 MB Notification: Performance of Templates: time 0.005713/0.01836, allocations: 0.8211 MB / 246.1 MB, free: 12.24 MB / 250.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.523555693216622]