Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001964/0.001964, allocations: 107.6 kB / 17.06 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002576/0.002576, allocations: 192 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.599/1.599, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 48.06 kB / 351.3 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3945/0.3958, allocations: 49.43 MB / 400.7 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.004339/0.4002, allocations: 1.906 MB / 402.6 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002247/0.4025, allocations: 1.161 MB / 403.8 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.4027, allocations: 7.938 kB / 403.8 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003682/0.4031, allocations: 67.66 kB / 403.9 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003175/0.4034, allocations: 95.58 kB / 403.9 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00086/0.4043, allocations: 266.1 kB / 404.2 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002789/0.4046, allocations: 171.5 kB / 404.4 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.4047, allocations: 49.45 kB / 404.4 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.4049, allocations: 75.7 kB / 404.5 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001301/0.405, allocations: 87.55 kB / 404.6 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.808e-05/0.405, allocations: 8 kB / 404.6 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001888/0.4052, allocations: 71.89 kB / 404.7 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.279e-05/0.4053, allocations: 51.83 kB / 404.7 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.954e-05/0.4054, allocations: 83.42 kB / 404.8 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003984/0.4059, allocations: 248.3 kB / 405 MB, free: 4.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.4059, allocations: 4 kB / 405 MB, free: 4.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4059, allocations: 0 / 405 MB, free: 4.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.4059, allocations: 0 / 405 MB, free: 4.582 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008163/0.4067, allocations: 0.5381 MB / 405.6 MB, free: 3.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.4068, allocations: 15.89 kB / 405.6 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.97e-05/0.4068, allocations: 28.64 kB / 405.6 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004173/0.4073, allocations: 299.5 kB / 405.9 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.4073, allocations: 8.375 kB / 405.9 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.866e-05/0.4073, allocations: 12.11 kB / 405.9 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003756/0.4077, allocations: 172.4 kB / 406.1 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.4077, allocations: 0 / 406.1 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.4078, allocations: 3.938 kB / 406.1 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.4078, allocations: 4 kB / 406.1 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001286/0.4079, allocations: 43.91 kB / 406.2 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005434/0.4085, allocations: 395.2 kB / 406.5 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002657/0.4087, allocations: 138.5 kB / 406.7 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.4088, allocations: 63.41 kB / 406.7 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.4089, allocations: 12 kB / 406.7 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001719/0.4091, allocations: 83.28 kB / 406.8 MB, free: 2.551 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.4091, allocations: 8 kB / 406.8 MB, free: 2.543 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004157/0.4095, allocations: 161.3 kB / 407 MB, free: 2.379 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.4096, allocations: 187.9 kB / 407.2 MB, free: 2.152 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003388/0.41, allocations: 334.6 kB / 407.5 MB, free: 1.816 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.41, allocations: 25.7 kB / 407.5 MB, free: 1.785 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.4101, allocations: 132.8 kB / 407.7 MB, free: 1.648 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.585e-05/0.4101, allocations: 23.75 kB / 407.7 MB, free: 1.625 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.606e-05/0.4102, allocations: 33.7 kB / 407.7 MB, free: 1.586 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4104, allocations: 334.8 kB / 408 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.868e-05/0.4104, allocations: 27.98 kB / 408.1 MB, free: 1.223 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.4106, allocations: 104.6 kB / 408.2 MB, free: 1.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001712/0.4108, allocations: 101.9 kB / 408.3 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4108, allocations: 256 / 408.3 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002401/0.411, allocations: 137.3 kB / 408.4 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.4111, allocations: 8 kB / 408.4 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.4111, allocations: 3.984 kB / 408.4 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.4111, allocations: 7.938 kB / 408.4 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.4112, allocations: 19.94 kB / 408.4 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.4112, allocations: 8.172 kB / 408.5 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.81e-05/0.4113, allocations: 23.78 kB / 408.5 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.4114, allocations: 4.047 kB / 408.5 MB, free: 0.7539 MB / 318.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: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 0.0001366/0.4115, allocations: 158.3 kB / 408.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.4116, allocations: 77.34 kB / 408.7 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.074e-05/0.4117, allocations: 33.7 kB / 408.7 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.4117, allocations: 0 / 408.7 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.4117, allocations: 96 / 408.7 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.4117, allocations: 11.94 kB / 408.8 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002257/0.4119, allocations: 237.6 kB / 409 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.412, allocations: 0 / 409 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.596e-05/0.412, allocations: 19.92 kB / 409 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.4121, allocations: 4 kB / 409 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.4121, allocations: 0 / 409 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.4121, allocations: 4 kB / 409 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4121, allocations: 0 / 409 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003032/0.4124, allocations: 187.3 kB / 409.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.4125, allocations: 120.7 kB / 409.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.494e-05/0.4125, allocations: 7.938 kB / 409.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.19e-05/0.4126, allocations: 7.984 kB / 409.3 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.076e-05/0.4127, allocations: 8 kB / 409.3 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.4127, allocations: 11.92 kB / 409.3 MB, free: 15.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002436/0.413, allocations: 249.9 kB / 409.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.413, allocations: 0 / 409.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002726/0.4133, allocations: 32 kB / 409.6 MB, free: 15.49 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001014/0.4143, allocations: 420.7 kB / 410 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002778/0.4146, allocations: 95.77 kB / 410.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.4146, allocations: 4.375 kB / 410.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.898e-05/0.4147, allocations: 23.98 kB / 410.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004606/0.4151, allocations: 84.62 kB / 410.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006823/0.4158, allocations: 382 kB / 410.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003405/0.4162, allocations: 0.7478 MB / 411.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001069/0.4163, allocations: 33.52 kB / 411.4 MB, free: 13.81 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.419e-05/0.4164, allocations: 27.31 kB / 411.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4164, allocations: 0 / 411.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of Templates: time 0.007948/0.4243, allocations: 3.053 MB / 414.5 MB, free: 10.77 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches