Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001577/0.001577, allocations: 116.8 kB / 19.18 MB, free: 3.762 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.001954/0.001954, allocations: 210.6 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.495/1.495, allocations: 230.5 MB / 255.4 MB, free: 15 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 67.89 kB / 374.8 MB, free: 9.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1163, allocations: 53.31 MB / 428.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003177/0.1194, allocations: 1.615 MB / 429.7 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009844/0.1204, allocations: 0.5065 MB / 430.2 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.233e-05/0.1205, allocations: 4 kB / 430.2 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.779e-05/0.1205, allocations: 7.875 kB / 430.2 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001684/0.1207, allocations: 15.86 kB / 430.2 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002471/0.1209, allocations: 51.94 kB / 430.3 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001419/0.1211, allocations: 71.72 kB / 430.3 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.931e-05/0.1212, allocations: 7.984 kB / 430.3 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.1213, allocations: 35.91 kB / 430.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.564e-05/0.1214, allocations: 43.77 kB / 430.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.857e-05/0.1214, allocations: 4 kB / 430.4 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.518e-05/0.1215, allocations: 8 kB / 430.4 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.458e-05/0.1215, allocations: 11.98 kB / 430.4 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.033e-05/0.1216, allocations: 31.75 kB / 430.5 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000164/0.1217, allocations: 63.72 kB / 430.5 MB, free: 1.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1217, allocations: 4 kB / 430.5 MB, free: 1.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1217, allocations: 3.938 kB / 430.5 MB, free: 1.844 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.1217, allocations: 0 / 430.5 MB, free: 1.844 MB / 350.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.0005999/0.1223, allocations: 383.1 kB / 430.9 MB, free: 1.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.1224, allocations: 12.03 kB / 430.9 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002338/0.1226, allocations: 20.88 kB / 430.9 MB, free: 1.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002641/0.1229, allocations: 192.2 kB / 431.1 MB, free: 1.164 MB / 350.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 0.0001014/0.123, allocations: 42.25 kB / 431.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.486e-05/0.123, allocations: 4.375 kB / 431.2 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003954/0.1234, allocations: 165 kB / 431.3 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.1234, allocations: 4 kB / 431.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.1234, allocations: 0 / 431.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.1234, allocations: 4 kB / 431.4 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001332/0.1235, allocations: 35.97 kB / 431.4 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002299/0.1238, allocations: 186.4 kB / 431.6 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003168/0.1241, allocations: 162.4 kB / 431.7 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.1242, allocations: 41.7 kB / 431.8 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.866e-05/0.1242, allocations: 7.938 kB / 431.8 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.1243, allocations: 34.5 kB / 431.8 MB, free: 372 kB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.1243, allocations: 0 / 431.8 MB, free: 372 kB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003697/0.1246, allocations: 117.5 kB / 431.9 MB, free: 248 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.493e-05/0.1247, allocations: 89.23 kB / 432 MB, free: 140 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.1248, allocations: 117.8 kB / 432.1 MB, free: 12 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.2281/0.3529, allocations: 25.7 kB / 432.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.163e-05/0.353, allocations: 88.64 kB / 432.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.29e-05/0.353, allocations: 10.64 kB / 432.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.998e-05/0.3531, allocations: 20.41 kB / 432.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.428e-05/0.3532, allocations: 319.7 kB / 432.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.799e-05/0.3532, allocations: 17.84 kB / 432.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.03e-05/0.3533, allocations: 58.16 kB / 432.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/0.3535, allocations: 79.86 kB / 432.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.3535, allocations: 3.688 kB / 432.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002276/0.3537, allocations: 104.4 kB / 432.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.3537, allocations: 6.281 kB / 432.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.3537, allocations: 1.969 kB / 432.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.3537, allocations: 2.594 kB / 432.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.3538, allocations: 18.78 kB / 432.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.3539, allocations: 6.172 kB / 432.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.851e-05/0.3539, allocations: 14.28 kB / 432.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.3539, allocations: 4.422 kB / 432.9 MB, free: 10.9 MB / 350.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 7.694e-05/0.354, allocations: 118.8 kB / 433 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.3541, allocations: 74.62 kB / 433.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.762e-05/0.3542, allocations: 19.58 kB / 433.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.3542, allocations: 5.094 kB / 433.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.3542, allocations: 1.547 kB / 433.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3542, allocations: 0.6875 kB / 433.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001191/0.3543, allocations: 175.5 kB / 433.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3543, allocations: 1.062 kB / 433.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.888e-05/0.3544, allocations: 11.3 kB / 433.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.3544, allocations: 1.859 kB / 433.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.3544, allocations: 7.031 kB / 433.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3544, allocations: 9.453 kB / 433.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3544, allocations: 0 / 433.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000233/0.3547, allocations: 124.7 kB / 433.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.597e-05/0.3547, allocations: 84.33 kB / 433.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.417e-05/0.3548, allocations: 6.953 kB / 433.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.81e-05/0.3548, allocations: 9.594 kB / 433.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.517e-05/0.3549, allocations: 2.031 kB / 433.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.3549, allocations: 7.844 kB / 433.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.63e-05/0.3549, allocations: 98.53 kB / 433.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3549, allocations: 4.5 kB / 433.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002193/0.3552, allocations: 12.16 kB / 433.6 MB, free: 10.31 MB / 350.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.000115/0.3553, allocations: 106.9 kB / 433.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002264/0.3555, allocations: 57.06 kB / 433.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3555, allocations: 4.906 kB / 433.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.987e-05/0.3555, allocations: 10.67 kB / 433.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005648/0.3561, allocations: 0.7221 MB / 434.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003733/0.3565, allocations: 202.1 kB / 434.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001208/0.3566, allocations: 0.6923 MB / 435.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.054e-05/0.3566, allocations: 14.12 kB / 435.5 MB, free: 8.676 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3566, allocations: 0 / 435.5 MB, free: 8.676 MB / 350.1 MB Notification: Performance of Templates: time 0.002789/0.3594, allocations: 0.9771 MB / 436.4 MB, free: 8.645 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.848443116992712]