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.001019/0.001019, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.0009649/0.0009649, allocations: 167.2 kB / 24.99 MB, free: 8.793 MB / 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.092/1.092, allocations: 177.1 MB / 205.3 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] 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.934e-06/1.934e-06, allocations: 0 / 273.1 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.28e-05/3.474e-05, allocations: 2.312 kB / 273.1 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002721/0.002756, allocations: 1.642 MB / 274.7 MB, free: 192 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007825/0.003539, allocations: 0.5063 MB / 275.2 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.331e-05/0.003622, allocations: 4 kB / 275.2 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.236e-05/0.003654, allocations: 11.88 kB / 275.2 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002018/0.003856, allocations: 11.86 kB / 275.2 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002895/0.004146, allocations: 47.83 kB / 275.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001313/0.004277, allocations: 75.75 kB / 275.4 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.873e-05/0.004376, allocations: 4 kB / 275.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001905/0.004566, allocations: 47.89 kB / 275.4 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.733e-05/0.004623, allocations: 23.91 kB / 275.4 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.475e-05/0.004648, allocations: 8 kB / 275.4 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.316e-05/0.004691, allocations: 12 kB / 275.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.32e-05/0.004715, allocations: 19.91 kB / 275.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.88e-05/0.004753, allocations: 15.98 kB / 275.5 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.004911, allocations: 55.73 kB / 275.5 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.004914, allocations: 0 / 275.5 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.004916, allocations: 4 kB / 275.5 MB, free: 15.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.00492, allocations: 0 / 275.5 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.000505/0.005425, allocations: 408.3 kB / 275.9 MB, free: 14.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.005472, allocations: 11.97 kB / 276 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001999/0.005672, allocations: 24.88 kB / 276 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001789/0.005851, allocations: 132.6 kB / 276.1 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 8.467e-05/0.005936, allocations: 38.25 kB / 276.1 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.00595, allocations: 8.312 kB / 276.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002965/0.006246, allocations: 165.5 kB / 276.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.006253, allocations: 192 / 276.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.006265, allocations: 4.125 kB / 276.3 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.006273, allocations: 4 kB / 276.3 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.713e-05/0.00633, allocations: 23.98 kB / 276.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001492/0.00648, allocations: 144.2 kB / 276.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002026/0.006682, allocations: 86.28 kB / 276.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.126e-05/0.006733, allocations: 31.38 kB / 276.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.016e-05/0.006754, allocations: 7.922 kB / 276.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.006775, allocations: 41.39 kB / 276.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.006777, allocations: 0 / 276.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002169/0.006993, allocations: 81.75 kB / 276.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.464e-05/0.007058, allocations: 89.23 kB / 276.8 MB, free: 13.87 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.007161, allocations: 189.1 kB / 277 MB, free: 13.67 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/0.007175, allocations: 29.7 kB / 277 MB, free: 13.63 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.805e-05/0.007223, allocations: 134.9 kB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/0.007246, allocations: 7.953 kB / 277.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.872e-05/0.007285, allocations: 27.36 kB / 277.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003388/0.007624, allocations: 496.1 kB / 277.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.285e-05/0.007646, allocations: 11.98 kB / 277.7 MB, free: 12.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.803e-05/0.007674, allocations: 27.06 kB / 277.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.059e-05/0.007725, allocations: 43 kB / 277.8 MB, free: 12.85 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.007727, allocations: 0 / 277.8 MB, free: 12.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.046e-05/0.007818, allocations: 65.52 kB / 277.8 MB, free: 12.78 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.007832, allocations: 8 kB / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.007837, allocations: 3.984 kB / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.007849, allocations: 0 / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.079e-05/0.00791, allocations: 15.92 kB / 277.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.007917, allocations: 3.938 kB / 277.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.336e-05/0.007941, allocations: 0 / 277.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.014e-06/0.007948, allocations: 12.09 kB / 277.9 MB, free: 12.74 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 7.57e-05/0.008023, allocations: 156.6 kB / 278 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.127e-05/0.008115, allocations: 73.62 kB / 278.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.78e-05/0.008152, allocations: 8.422 kB / 278.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.008156, allocations: 4 kB / 278.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.008161, allocations: 3.938 kB / 278.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.008165, allocations: 0 / 278.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.758e-05/0.008252, allocations: 124.6 kB / 278.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.008255, allocations: 3.984 kB / 278.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.042e-05/0.008305, allocations: 11.94 kB / 278.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.008308, allocations: 8 kB / 278.3 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.008319, allocations: 3.984 kB / 278.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.00832, allocations: 0 / 278.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.008321, allocations: 0 / 278.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.008462, allocations: 128.2 kB / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.153e-05/0.008493, allocations: 11.95 kB / 278.4 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.008517, allocations: 11.98 kB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.594e-05/0.008552, allocations: 0 / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.204e-05/0.008585, allocations: 11.94 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.622e-06/0.008591, allocations: 0 / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.41e-05/0.008645, allocations: 139.2 kB / 278.6 MB, free: 11.97 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.008645, allocations: 4 kB / 278.6 MB, free: 11.96 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001836/0.008829, allocations: 8 kB / 278.6 MB, free: 11.96 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.0001011/0.00893, allocations: 107.2 kB / 278.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001078/0.009038, allocations: 31.67 kB / 278.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.00904, allocations: 3.938 kB / 278.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.513e-05/0.009055, allocations: 15.62 kB / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000627/0.009682, allocations: 1.068 MB / 279.8 MB, free: 10.69 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000531/0.01021, allocations: 187.3 kB / 280 MB, free: 10.48 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.615e-05/0.01026, allocations: 59.34 kB / 280 MB, free: 10.4 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.562e-05/0.01028, allocations: 4 kB / 280 MB, free: 10.39 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.195e-05/0.01032, allocations: 12.5 kB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of SimCode: time 8.72e-07/0.01032, allocations: 0 / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of Templates: time 0.002674/0.01299, allocations: 0.807 MB / 280.9 MB, free: 9.582 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0482393698766828]