Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.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.001521/0.001521, allocations: 98.44 kB / 16.02 MB, free: 6.328 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.001862/0.001862, allocations: 197.2 kB / 16.95 MB, free: 6.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.797/1.797, allocations: 205.1 MB / 222.8 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08417/0.08417, allocations: 12.59 MB / 282.7 MB, free: 15.64 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002158/0.002158, allocations: 92.39 kB / 343 MB, free: 3.309 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3909/0.393, allocations: 49.38 MB / 392.4 MB, free: 49.13 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.005287/0.3984, allocations: 1.954 MB / 394.3 MB, free: 47.79 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002386/0.4009, allocations: 1.066 MB / 395.4 MB, free: 47.05 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002123/0.4011, allocations: 6.219 kB / 395.4 MB, free: 47.05 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004973/0.4016, allocations: 61.59 kB / 395.5 MB, free: 47.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003904/0.402, allocations: 81.44 kB / 395.5 MB, free: 47 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009857/0.403, allocations: 224.1 kB / 395.7 MB, free: 46.88 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003494/0.4034, allocations: 179.4 kB / 395.9 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002187/0.4036, allocations: 34.23 kB / 396 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.4037, allocations: 86.02 kB / 396 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001989/0.4039, allocations: 80.75 kB / 396.1 MB, free: 46.72 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.96e-05/0.404, allocations: 11.19 kB / 396.1 MB, free: 46.71 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002172/0.4042, allocations: 59.86 kB / 396.2 MB, free: 46.7 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.4044, allocations: 55.89 kB / 396.2 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.4045, allocations: 81.36 kB / 396.3 MB, free: 46.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006244/0.4051, allocations: 244.8 kB / 396.6 MB, free: 46.51 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.4051, allocations: 0 / 396.6 MB, free: 46.51 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.4051, allocations: 1.188 kB / 396.6 MB, free: 46.51 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.4052, allocations: 3.938 kB / 396.6 MB, free: 46.51 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.001008/0.4062, allocations: 0.5405 MB / 397.1 MB, free: 46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.893e-05/0.4063, allocations: 13.81 kB / 397.1 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/0.4064, allocations: 28.59 kB / 397.2 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004773/0.4069, allocations: 286.6 kB / 397.4 MB, free: 45.7 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.4069, allocations: 8.781 kB / 397.4 MB, free: 45.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.193e-05/0.4069, allocations: 8.5 kB / 397.4 MB, free: 45.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005361/0.4075, allocations: 180.9 kB / 397.6 MB, free: 45.54 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.4075, allocations: 0.9688 kB / 397.6 MB, free: 45.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.452e-05/0.4075, allocations: 4.844 kB / 397.6 MB, free: 45.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.4076, allocations: 2.031 kB / 397.6 MB, free: 45.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001477/0.4077, allocations: 40.75 kB / 397.7 MB, free: 45.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007182/0.4084, allocations: 407.1 kB / 398.1 MB, free: 45.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002976/0.4087, allocations: 143 kB / 398.2 MB, free: 44.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.4089, allocations: 61.33 kB / 398.3 MB, free: 44.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.945e-05/0.4089, allocations: 1.75 kB / 398.3 MB, free: 44.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000341/0.4093, allocations: 85.31 kB / 398.4 MB, free: 44.85 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.723e-06/0.4093, allocations: 0 / 398.4 MB, free: 44.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004674/0.4098, allocations: 167.7 kB / 398.5 MB, free: 44.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.767e-05/0.4099, allocations: 188.2 kB / 398.7 MB, free: 44.53 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.4103, allocations: 333.7 kB / 399 MB, free: 44.33 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.4103, allocations: 34.8 kB / 399.1 MB, free: 44.29 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.928e-05/0.4104, allocations: 127 kB / 399.2 MB, free: 44.17 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.151e-05/0.4105, allocations: 19.11 kB / 399.2 MB, free: 44.16 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.509e-05/0.4105, allocations: 30.69 kB / 399.2 MB, free: 44.13 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.4106, allocations: 340.4 kB / 399.6 MB, free: 43.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.49e-05/0.4107, allocations: 24.83 kB / 399.6 MB, free: 43.79 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.4109, allocations: 104.5 kB / 399.7 MB, free: 43.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001597/0.411, allocations: 97.38 kB / 399.8 MB, free: 43.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/0.411, allocations: 1.156 kB / 399.8 MB, free: 43.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002531/0.4113, allocations: 142.8 kB / 399.9 MB, free: 43.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.4113, allocations: 9.312 kB / 399.9 MB, free: 43.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.4113, allocations: 2.156 kB / 399.9 MB, free: 43.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.4114, allocations: 10.69 kB / 399.9 MB, free: 43.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.4115, allocations: 25.86 kB / 400 MB, free: 43.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.4115, allocations: 2.844 kB / 400 MB, free: 43.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.067e-05/0.4116, allocations: 11.41 kB / 400 MB, free: 43.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.4116, allocations: 4.656 kB / 400 MB, free: 43.48 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,sample.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.0001286/0.4118, allocations: 160.3 kB / 400.1 MB, free: 43.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.735e-05/0.4119, allocations: 79.59 kB / 400.2 MB, free: 43.28 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.228e-05/0.4119, allocations: 32.61 kB / 400.3 MB, free: 43.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.4119, allocations: 6.5 kB / 400.3 MB, free: 43.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.412, allocations: 5.281 kB / 400.3 MB, free: 43.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.412, allocations: 5.25 kB / 400.3 MB, free: 43.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001926/0.4122, allocations: 239.2 kB / 400.5 MB, free: 43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.4122, allocations: 1.469 kB / 400.5 MB, free: 43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.154e-05/0.4123, allocations: 11.94 kB / 400.5 MB, free: 43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.4123, allocations: 1.219 kB / 400.5 MB, free: 43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.04e-05/0.4123, allocations: 10.2 kB / 400.5 MB, free: 42.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.4123, allocations: 6.406 kB / 400.5 MB, free: 42.99 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.4123, allocations: 0.9375 kB / 400.5 MB, free: 42.99 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002922/0.4126, allocations: 187.8 kB / 400.7 MB, free: 42.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.821e-05/0.4127, allocations: 117.8 kB / 400.8 MB, free: 42.71 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.08e-05/0.4128, allocations: 6.406 kB / 400.8 MB, free: 42.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.725e-05/0.4128, allocations: 3.562 kB / 400.8 MB, free: 42.71 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.749e-05/0.4129, allocations: 16.02 kB / 400.9 MB, free: 42.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.349e-05/0.413, allocations: 8.875 kB / 400.9 MB, free: 42.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002811/0.4132, allocations: 255.1 kB / 401.1 MB, free: 42.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4133, allocations: 0 / 401.1 MB, free: 42.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003395/0.4136, allocations: 35.75 kB / 401.2 MB, free: 42.53 MB / 318.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,sample.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.00114/0.4147, allocations: 421.3 kB / 401.6 MB, free: 42.19 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002922/0.4151, allocations: 90.81 kB / 401.7 MB, free: 42.15 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.4151, allocations: 1.312 kB / 401.7 MB, free: 42.15 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.365e-05/0.4152, allocations: 29.14 kB / 401.7 MB, free: 42.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004802/0.4156, allocations: 74.06 kB / 401.8 MB, free: 42.1 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006414/0.4163, allocations: 443 kB / 402.2 MB, free: 41.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002227/0.4165, allocations: 0.7513 MB / 402.9 MB, free: 41.04 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.4166, allocations: 34.61 kB / 403 MB, free: 41.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.313e-05/0.4167, allocations: 28.7 kB / 403 MB, free: 41 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4167, allocations: 0 / 403 MB, free: 41 MB / 318.1 MB Notification: Performance of Templates: time 0.007268/0.424, allocations: 3.023 MB / 406 MB, free: 39.47 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches