Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000928/0.000938, allocations: 95.88 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001162/0.001162, allocations: 203.6 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002597/0.0002596, allocations: 4 kB / 308.4 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1117, allocations: 51.53 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001867/0.1136, allocations: 1.161 MB / 361.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003007/0.1139, allocations: 103.7 kB / 361.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.388e-05/0.114, allocations: 0 / 361.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.975e-05/0.1141, allocations: 0 / 361.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.508e-05/0.1141, allocations: 3.938 kB / 361.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/0.1144, allocations: 15.98 kB / 361.2 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.674e-05/0.1145, allocations: 23.94 kB / 361.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.1146, allocations: 11.97 kB / 361.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.134e-05/0.1146, allocations: 11.94 kB / 361.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.24e-05/0.1147, allocations: 7.938 kB / 361.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.668e-05/0.1147, allocations: 0 / 361.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.307e-06/0.1147, allocations: 4 kB / 361.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.016e-05/0.1147, allocations: 7.922 kB / 361.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.936e-05/0.1148, allocations: 37.64 kB / 361.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 6.416e-05/0.1149, allocations: 15.97 kB / 361.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1149, allocations: 0 / 361.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1149, allocations: 0 / 361.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.427e-06/0.1149, allocations: 0 / 361.3 MB, free: 11.87 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004345/0.1153, allocations: 339.7 kB / 361.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.1154, allocations: 16.02 kB / 361.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.334e-05/0.1154, allocations: 12.78 kB / 361.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001743/0.1156, allocations: 176.4 kB / 361.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.1156, allocations: 384 / 361.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.152e-05/0.1156, allocations: 384 / 361.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003345/0.116, allocations: 115.9 kB / 362 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.116, allocations: 192 / 362 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.116, allocations: 3.938 kB / 362 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.116, allocations: 0 / 362 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9e-05/0.1161, allocations: 23.98 kB / 362 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001411/0.1163, allocations: 165.6 kB / 362.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001577/0.1164, allocations: 62.53 kB / 362.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.212e-05/0.1165, allocations: 24.89 kB / 362.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.1165, allocations: 3.938 kB / 362.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.1166, allocations: 30.56 kB / 362.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.1166, allocations: 4 kB / 362.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002211/0.1168, allocations: 85.72 kB / 362.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.1169, allocations: 51.41 kB / 362.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.862e-05/0.1169, allocations: 101.9 kB / 362.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/0.117, allocations: 29.7 kB / 362.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.531e-05/0.117, allocations: 88.12 kB / 362.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.963e-06/0.117, allocations: 4 kB / 362.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.403e-05/0.117, allocations: 13.72 kB / 362.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1172, allocations: 314.8 kB / 362.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.158e-05/0.1172, allocations: 7.922 kB / 363 MB, free: 10.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.036e-05/0.1172, allocations: 31.42 kB / 363 MB, free: 9.965 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.392e-05/0.1173, allocations: 39.38 kB / 363 MB, free: 9.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1173, allocations: 0 / 363 MB, free: 9.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.057e-05/0.1174, allocations: 53.62 kB / 363.1 MB, free: 9.855 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.1174, allocations: 4 kB / 363.1 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.1174, allocations: 3.938 kB / 363.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.1174, allocations: 4 kB / 363.1 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.674e-05/0.1175, allocations: 12.06 kB / 363.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.1175, allocations: 4 kB / 363.1 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.058e-05/0.1175, allocations: 3.906 kB / 363.1 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.406e-06/0.1175, allocations: 0 / 363.1 MB, free: 9.824 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.162e-05/0.1176, allocations: 125.7 kB / 363.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.1177, allocations: 57.69 kB / 363.3 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.071e-05/0.1178, allocations: 11.84 kB / 363.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1178, allocations: 4 kB / 363.3 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.1178, allocations: 0 / 363.3 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1178, allocations: 0 / 363.3 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.13e-05/0.1179, allocations: 161.6 kB / 363.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1179, allocations: 0 / 363.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.164e-05/0.118, allocations: 8 kB / 363.5 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.118, allocations: 0 / 363.5 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.118, allocations: 7.938 kB / 363.5 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.118, allocations: 0 / 363.5 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.118, allocations: 3.984 kB / 363.5 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001393/0.1182, allocations: 92.97 kB / 363.6 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.451e-05/0.1182, allocations: 81.09 kB / 363.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.1182, allocations: 3.938 kB / 363.7 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.796e-05/0.1182, allocations: 4.25 kB / 363.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.755e-06/0.1183, allocations: 0 / 363.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-06/0.1183, allocations: 4 kB / 363.7 MB, free: 9.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.552e-05/0.1183, allocations: 91.28 kB / 363.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1183, allocations: 0 / 363.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001858/0.1185, allocations: 0 / 363.8 MB, free: 9.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001042/0.1186, allocations: 103.2 kB / 363.9 MB, free: 8.961 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001088/0.1187, allocations: 27.98 kB / 363.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1188, allocations: 256 / 363.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.82e-07/0.1188, allocations: 4 kB / 363.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.119, allocations: 27.94 kB / 363.9 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002713/0.1193, allocations: 142.4 kB / 364.1 MB, free: 8.727 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002271/0.1195, allocations: 0.6809 MB / 364.7 MB, free: 8.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.275e-05/0.1195, allocations: 15.38 kB / 364.7 MB, free: 8.004 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1195, allocations: 0 / 364.7 MB, free: 8.004 MB / 302.1 MB Notification: Performance of Templates: time 0.001778/0.1213, allocations: 0.5472 MB / 365.3 MB, free: 7.457 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches