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.001018/0.001018, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001409/0.001409, allocations: 151.4 kB / 24.81 MB, free: 9.285 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.9705/0.9705, allocations: 173.3 MB / 201.4 MB, free: 9.211 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.944e-06/1.944e-06, allocations: 0 / 268.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.141e-05/2.335e-05, allocations: 2.312 kB / 268.4 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002289/0.002313, allocations: 1.627 MB / 270 MB, free: 4.543 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006951/0.003008, allocations: 438.8 kB / 270.5 MB, free: 4.109 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.57e-05/0.003083, allocations: 0 / 270.5 MB, free: 4.109 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.727e-05/0.003111, allocations: 3.938 kB / 270.5 MB, free: 4.105 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.003272, allocations: 23.78 kB / 270.5 MB, free: 4.082 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001863/0.003458, allocations: 39.83 kB / 270.5 MB, free: 4.043 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.003559, allocations: 71.78 kB / 270.6 MB, free: 3.973 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.138e-05/0.00364, allocations: 7.984 kB / 270.6 MB, free: 3.965 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.00376, allocations: 43.89 kB / 270.7 MB, free: 3.922 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.481e-05/0.003804, allocations: 23.95 kB / 270.7 MB, free: 3.898 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.795e-05/0.003822, allocations: 8 kB / 270.7 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.051e-05/0.003833, allocations: 4 kB / 270.7 MB, free: 3.887 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.291e-05/0.003856, allocations: 15.94 kB / 270.7 MB, free: 3.871 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.715e-05/0.003883, allocations: 15.92 kB / 270.7 MB, free: 3.855 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001012/0.003984, allocations: 51.75 kB / 270.8 MB, free: 3.805 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.003987, allocations: 0 / 270.8 MB, free: 3.805 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.003988, allocations: 4 kB / 270.8 MB, free: 3.801 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.477e-06/0.003991, allocations: 0 / 270.8 MB, free: 3.801 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.0007028/0.004694, allocations: 404.4 kB / 271.2 MB, free: 3.371 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.004732, allocations: 12.92 kB / 271.2 MB, free: 3.359 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.517e-05/0.004767, allocations: 8.891 kB / 271.2 MB, free: 3.352 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.004909, allocations: 136.5 kB / 271.3 MB, free: 3.191 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 7.4e-05/0.004983, allocations: 38.25 kB / 271.4 MB, free: 3.148 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.004994, allocations: 4.375 kB / 271.4 MB, free: 3.145 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002342/0.005228, allocations: 169.4 kB / 271.5 MB, free: 2.953 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.005237, allocations: 4.188 kB / 271.5 MB, free: 2.949 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.005246, allocations: 4.125 kB / 271.5 MB, free: 2.945 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.005251, allocations: 0 / 271.5 MB, free: 2.945 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.649e-05/0.005287, allocations: 15.98 kB / 271.6 MB, free: 2.93 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001196/0.005407, allocations: 116.9 kB / 271.7 MB, free: 2.785 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001654/0.005572, allocations: 82.28 kB / 271.8 MB, free: 2.68 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.46e-05/0.005607, allocations: 27.38 kB / 271.8 MB, free: 2.645 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.005629, allocations: 15.92 kB / 271.8 MB, free: 2.629 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.005649, allocations: 33.39 kB / 271.8 MB, free: 2.586 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.00565, allocations: 0 / 271.8 MB, free: 2.586 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001688/0.005819, allocations: 89.5 kB / 271.9 MB, free: 2.492 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.519e-05/0.005864, allocations: 81.11 kB / 272 MB, free: 2.395 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.166e-05/0.005936, allocations: 189.2 kB / 272.2 MB, free: 2.195 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.036e-05/0.005946, allocations: 25.7 kB / 272.2 MB, free: 2.164 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.903e-05/0.005985, allocations: 138.9 kB / 272.3 MB, free: 2.023 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.906e-05/0.006004, allocations: 3.953 kB / 272.3 MB, free: 2.02 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.039e-05/0.006035, allocations: 31.48 kB / 272.4 MB, free: 1.98 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.006145, allocations: 0.4923 MB / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.183e-05/0.006157, allocations: 256 / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.594e-05/0.006183, allocations: 43.03 kB / 272.9 MB, free: 1.422 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.887e-05/0.006221, allocations: 42.98 kB / 273 MB, free: 1.367 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.006224, allocations: 0 / 273 MB, free: 1.367 MB / 250.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.468e-05/0.006288, allocations: 57.58 kB / 273 MB, free: 1.305 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.0063, allocations: 8.094 kB / 273 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.006305, allocations: 4 kB / 273 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.006315, allocations: 0 / 273 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.571e-05/0.006361, allocations: 11.98 kB / 273 MB, free: 1.281 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.206e-06/0.006364, allocations: 3.938 kB / 273 MB, free: 1.277 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.721e-05/0.006381, allocations: 3.938 kB / 273 MB, free: 1.273 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.9e-06/0.006386, allocations: 4 kB / 273 MB, free: 1.27 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 7.397e-05/0.00646, allocations: 160.6 kB / 273.2 MB, free: 1.102 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.11e-05/0.006521, allocations: 57.64 kB / 273.3 MB, free: 1.039 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.319e-05/0.006554, allocations: 16.42 kB / 273.3 MB, free: 1.02 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.006557, allocations: 4 kB / 273.3 MB, free: 1.016 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.006559, allocations: 0 / 273.3 MB, free: 1.016 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.006564, allocations: 7.938 kB / 273.3 MB, free: 1.008 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.632e-05/0.00663, allocations: 101.2 kB / 273.4 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.006632, allocations: 4 kB / 273.4 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.692e-05/0.006669, allocations: 15.92 kB / 273.4 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.006671, allocations: 0 / 273.4 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.942e-06/0.006677, allocations: 3.938 kB / 273.4 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.006678, allocations: 0 / 273.4 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.00668, allocations: 4 kB / 273.4 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.001e-05/0.00674, allocations: 88.02 kB / 273.5 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.795e-05/0.006768, allocations: 23.89 kB / 273.5 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.006783, allocations: 4 kB / 273.5 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.632e-05/0.00681, allocations: 4.188 kB / 273.5 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.249e-05/0.006832, allocations: 0 / 273.5 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-06/0.006841, allocations: 11.98 kB / 273.5 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.973e-05/0.006881, allocations: 135.2 kB / 273.7 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006881, allocations: 0 / 273.7 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001224/0.007003, allocations: 8 kB / 273.7 MB, free: 0.5586 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 8.503e-05/0.007088, allocations: 107.1 kB / 273.8 MB, free: 456 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 7.863e-05/0.007167, allocations: 31.67 kB / 273.8 MB, free: 420 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.007169, allocations: 0 / 273.8 MB, free: 420 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.246e-05/0.007181, allocations: 15.62 kB / 273.8 MB, free: 400 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000477/0.007658, allocations: 1.061 MB / 274.9 MB, free: 15.3 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004047/0.008063, allocations: 175.3 kB / 275.1 MB, free: 15.1 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.194e-05/0.008095, allocations: 63.66 kB / 275.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.923e-05/0.008114, allocations: 7.984 kB / 275.1 MB, free: 15.01 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.609e-05/0.00816, allocations: 74.2 kB / 275.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.008161, allocations: 0 / 275.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of Templates: time 0.002277/0.01044, allocations: 0.8505 MB / 276.1 MB, free: 14.1 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=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.6992815900593996]