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.0009253/0.0009253, allocations: 77.14 kB / 21.5 MB, free: 2.832 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.001142/0.001142, allocations: 141 kB / 24.89 MB, free: 9.277 MB / 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 0.8755/0.8755, allocations: 173.4 MB / 201.5 MB, free: 8.258 MB / 186.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.313e-06/1.313e-06, allocations: 3.938 kB / 268.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.797e-05/1.929e-05, allocations: 2.312 kB / 268.5 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002064/0.002083, allocations: 1.645 MB / 270.1 MB, free: 8.145 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005455/0.002628, allocations: 432.5 kB / 270.5 MB, free: 7.719 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.983e-05/0.002688, allocations: 0 / 270.5 MB, free: 7.719 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.432e-05/0.002712, allocations: 8.625 kB / 270.6 MB, free: 7.711 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.002838, allocations: 12.58 kB / 270.6 MB, free: 7.699 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001516/0.002989, allocations: 54.86 kB / 270.6 MB, free: 7.648 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.912e-05/0.003079, allocations: 63.78 kB / 270.7 MB, free: 7.586 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.422e-05/0.003143, allocations: 8 kB / 270.7 MB, free: 7.578 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.863e-05/0.003241, allocations: 43.89 kB / 270.7 MB, free: 7.535 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.269e-05/0.003284, allocations: 31.89 kB / 270.8 MB, free: 7.504 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.909e-05/0.003303, allocations: 4 kB / 270.8 MB, free: 7.5 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.957e-06/0.003312, allocations: 4 kB / 270.8 MB, free: 7.496 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.147e-05/0.003334, allocations: 15.92 kB / 270.8 MB, free: 7.48 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.329e-05/0.003357, allocations: 13.52 kB / 270.8 MB, free: 7.469 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.079e-05/0.003448, allocations: 59.73 kB / 270.9 MB, free: 7.41 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.003449, allocations: 0 / 270.9 MB, free: 7.41 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.00345, allocations: 0 / 270.9 MB, free: 7.41 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.036e-06/0.003453, allocations: 0.9062 kB / 270.9 MB, free: 7.41 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.0003122/0.003765, allocations: 276.7 kB / 271.1 MB, free: 7.117 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.003798, allocations: 8.969 kB / 271.1 MB, free: 7.109 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.648e-05/0.003825, allocations: 4.938 kB / 271.1 MB, free: 7.105 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.003948, allocations: 138.2 kB / 271.3 MB, free: 6.945 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 5.613e-05/0.004004, allocations: 38.25 kB / 271.3 MB, free: 6.902 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.004014, allocations: 10.66 kB / 271.3 MB, free: 6.895 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001849/0.004199, allocations: 150.1 kB / 271.5 MB, free: 6.727 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.004206, allocations: 192 / 271.5 MB, free: 6.727 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.004215, allocations: 9.125 kB / 271.5 MB, free: 6.719 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.00422, allocations: 0 / 271.5 MB, free: 6.719 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.389e-05/0.004254, allocations: 20.95 kB / 271.5 MB, free: 6.699 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.66e-05/0.004331, allocations: 69.84 kB / 271.6 MB, free: 6.613 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001667/0.004497, allocations: 67.61 kB / 271.6 MB, free: 6.531 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.896e-05/0.004526, allocations: 25.7 kB / 271.7 MB, free: 6.5 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.305e-05/0.004539, allocations: 4 kB / 271.7 MB, free: 6.496 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.004558, allocations: 38.5 kB / 271.7 MB, free: 6.449 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.00456, allocations: 0 / 271.7 MB, free: 6.449 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001214/0.004681, allocations: 74.5 kB / 271.8 MB, free: 6.371 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.004725, allocations: 81.11 kB / 271.9 MB, free: 6.273 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.343e-05/0.004778, allocations: 131.1 kB / 272 MB, free: 6.133 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.288e-06/0.004787, allocations: 25.7 kB / 272 MB, free: 6.102 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.246e-05/0.00481, allocations: 88.62 kB / 272.1 MB, free: 6.012 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.622e-05/0.004826, allocations: 8.062 kB / 272.1 MB, free: 6.004 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.221e-05/0.004848, allocations: 21.72 kB / 272.1 MB, free: 5.977 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.603e-05/0.004914, allocations: 322.8 kB / 272.4 MB, free: 5.652 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.143e-06/0.004921, allocations: 4 kB / 272.4 MB, free: 5.648 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.457e-05/0.004936, allocations: 18.58 kB / 272.5 MB, free: 5.621 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.068e-05/0.004967, allocations: 30.5 kB / 272.5 MB, free: 5.582 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.004968, allocations: 0 / 272.5 MB, free: 5.582 MB / 250.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 4.782e-05/0.005016, allocations: 57.69 kB / 272.5 MB, free: 5.52 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.237e-06/0.005025, allocations: 4 kB / 272.6 MB, free: 5.516 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.005029, allocations: 4 kB / 272.6 MB, free: 5.512 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.626e-06/0.005038, allocations: 0 / 272.6 MB, free: 5.512 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.34e-05/0.005081, allocations: 11.92 kB / 272.6 MB, free: 5.5 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.765e-06/0.005084, allocations: 0 / 272.6 MB, free: 5.5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.817e-05/0.005102, allocations: 7.938 kB / 272.6 MB, free: 5.492 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-06/0.005106, allocations: 0 / 272.6 MB, free: 5.492 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 5.148e-05/0.005158, allocations: 121.8 kB / 272.7 MB, free: 5.363 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.278e-05/0.0052, allocations: 53.67 kB / 272.7 MB, free: 5.305 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.443e-05/0.005225, allocations: 16.47 kB / 272.8 MB, free: 5.285 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.005227, allocations: 448 / 272.8 MB, free: 5.285 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.00523, allocations: 3.984 kB / 272.8 MB, free: 5.281 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.005234, allocations: 7.938 kB / 272.8 MB, free: 5.273 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.265e-05/0.005287, allocations: 77.84 kB / 272.9 MB, free: 5.18 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.005288, allocations: 0 / 272.9 MB, free: 5.18 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.31e-05/0.005321, allocations: 8 kB / 272.9 MB, free: 5.172 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.005324, allocations: 3.984 kB / 272.9 MB, free: 5.168 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.00533, allocations: 7.984 kB / 272.9 MB, free: 5.16 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.41e-07/0.005331, allocations: 0 / 272.9 MB, free: 5.16 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.005333, allocations: 7.938 kB / 272.9 MB, free: 5.152 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.347e-05/0.005377, allocations: 69.92 kB / 272.9 MB, free: 5.062 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.104e-05/0.005398, allocations: 4 kB / 272.9 MB, free: 5.059 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.005414, allocations: 4 kB / 273 MB, free: 5.055 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.388e-05/0.005438, allocations: 4 kB / 273 MB, free: 5.051 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.716e-05/0.005455, allocations: 3.984 kB / 273 MB, free: 5.047 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-06/0.005461, allocations: 4 kB / 273 MB, free: 5.043 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.623e-05/0.005477, allocations: 24.83 kB / 273 MB, free: 5.016 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.005477, allocations: 0 / 273 MB, free: 5.016 MB / 250.7 MB Notification: Performance of remove unused functions: time 9.58e-05/0.005573, allocations: 8 kB / 273 MB, free: 5.008 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 6.591e-05/0.005639, allocations: 80.45 kB / 273.1 MB, free: 4.922 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.582e-05/0.005704, allocations: 40.72 kB / 273.1 MB, free: 4.879 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.005706, allocations: 0 / 273.1 MB, free: 4.879 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.355e-06/0.005715, allocations: 4.859 kB / 273.1 MB, free: 4.871 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003119/0.006027, allocations: 0.7191 MB / 273.8 MB, free: 4.129 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006002/0.006627, allocations: 179.1 kB / 274 MB, free: 3.926 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.604e-05/0.006673, allocations: 67.28 kB / 274.1 MB, free: 3.84 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.948e-05/0.006702, allocations: 7.906 kB / 274.1 MB, free: 3.832 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.579e-05/0.006768, allocations: 51.38 kB / 274.1 MB, free: 3.781 MB / 250.7 MB Notification: Performance of SimCode: time 1.262e-06/0.006769, allocations: 0 / 274.1 MB, free: 3.781 MB / 250.7 MB Notification: Performance of Templates: time 0.00284/0.009609, allocations: 0.8233 MB / 275 MB, free: 2.98 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 -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.42614558711648]