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.001694/0.001694, allocations: 105.5 kB / 16.31 MB, free: 6.359 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.00227/0.00227, allocations: 184.6 kB / 17.24 MB, free: 5.879 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.986/1.986, allocations: 205.1 MB / 223.1 MB, free: 12.25 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.08224/0.08225, allocations: 12.59 MB / 283.1 MB, free: 15.47 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.001936/0.001936, allocations: 91.88 kB / 343.5 MB, free: 2.926 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3365, allocations: 49.37 MB / 392.9 MB, free: 49.2 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.003841/0.3404, allocations: 1.911 MB / 394.8 MB, free: 47.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.3425, allocations: 1.087 MB / 395.9 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.3427, allocations: 3.156 kB / 395.9 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004121/0.3431, allocations: 72.12 kB / 395.9 MB, free: 47.11 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.00034/0.3435, allocations: 93.66 kB / 396 MB, free: 47.06 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008069/0.3443, allocations: 236.2 kB / 396.3 MB, free: 46.94 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002788/0.3446, allocations: 174.3 kB / 396.4 MB, free: 46.86 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001616/0.3447, allocations: 34.66 kB / 396.5 MB, free: 46.85 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.3449, allocations: 80.36 kB / 396.5 MB, free: 46.81 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.345, allocations: 84.36 kB / 396.6 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.209e-05/0.3451, allocations: 9.875 kB / 396.6 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001799/0.3453, allocations: 61.44 kB / 396.7 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.3454, allocations: 51.75 kB / 396.7 MB, free: 46.71 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.398e-05/0.3455, allocations: 83.88 kB / 396.8 MB, free: 46.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003864/0.3459, allocations: 238.8 kB / 397.1 MB, free: 46.49 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.3459, allocations: 0 / 397.1 MB, free: 46.49 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3459, allocations: 0 / 397.1 MB, free: 46.49 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.3459, allocations: 1.812 kB / 397.1 MB, free: 46.49 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.0007681/0.3467, allocations: 0.5423 MB / 397.6 MB, free: 45.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.3467, allocations: 9.094 kB / 397.6 MB, free: 45.96 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.039e-05/0.3468, allocations: 27.91 kB / 397.6 MB, free: 45.94 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003572/0.3472, allocations: 291.8 kB / 397.9 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.3472, allocations: 8.438 kB / 397.9 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.76e-05/0.3472, allocations: 8.656 kB / 397.9 MB, free: 45.65 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003659/0.3476, allocations: 184.8 kB / 398.1 MB, free: 45.49 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.3476, allocations: 1.281 kB / 398.1 MB, free: 45.49 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.3476, allocations: 5.312 kB / 398.1 MB, free: 45.49 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.3476, allocations: 1.312 kB / 398.1 MB, free: 45.49 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001162/0.3478, allocations: 39.88 kB / 398.2 MB, free: 45.47 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000506/0.3483, allocations: 399.9 kB / 398.6 MB, free: 45.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002438/0.3485, allocations: 140 kB / 398.7 MB, free: 44.94 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.3487, allocations: 60.23 kB / 398.8 MB, free: 44.89 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.031e-05/0.3487, allocations: 13.23 kB / 398.8 MB, free: 44.88 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002761/0.349, allocations: 74.11 kB / 398.8 MB, free: 44.81 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.653e-06/0.349, allocations: 4 kB / 398.8 MB, free: 44.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005089/0.3495, allocations: 172.7 kB / 399 MB, free: 44.71 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.3496, allocations: 191.6 kB / 399.2 MB, free: 44.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003622/0.35, allocations: 329.6 kB / 399.5 MB, free: 44.29 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.35, allocations: 30.95 kB / 399.6 MB, free: 44.25 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.127e-05/0.3501, allocations: 134.7 kB / 399.7 MB, free: 44.12 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.3501, allocations: 16 kB / 399.7 MB, free: 44.11 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.522e-05/0.3502, allocations: 37.08 kB / 399.7 MB, free: 44.08 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.316e-05/0.3503, allocations: 337.3 kB / 400.1 MB, free: 43.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.536e-05/0.3504, allocations: 29.3 kB / 400.1 MB, free: 43.73 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.3505, allocations: 99.98 kB / 400.2 MB, free: 43.63 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.3506, allocations: 102.2 kB / 400.3 MB, free: 43.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3506, allocations: 0 / 400.3 MB, free: 43.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002533/0.3509, allocations: 139.2 kB / 400.4 MB, free: 43.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.3509, allocations: 10.38 kB / 400.4 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.351, allocations: 1.156 kB / 400.4 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.351, allocations: 6.125 kB / 400.4 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.3511, allocations: 21.64 kB / 400.5 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3511, allocations: 6.5 kB / 400.5 MB, free: 43.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.329e-05/0.3512, allocations: 16.39 kB / 400.5 MB, free: 43.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.3513, allocations: 4.531 kB / 400.5 MB, free: 43.43 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.0001336/0.3514, allocations: 156.7 kB / 400.6 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.3515, allocations: 78.94 kB / 400.7 MB, free: 43.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.509e-05/0.3516, allocations: 28.77 kB / 400.8 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.3516, allocations: 2.125 kB / 400.8 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.3516, allocations: 5.188 kB / 400.8 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.3516, allocations: 5.031 kB / 400.8 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001983/0.3518, allocations: 239.3 kB / 401 MB, free: 42.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.3518, allocations: 1.188 kB / 401 MB, free: 42.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.018e-05/0.3519, allocations: 16.42 kB / 401 MB, free: 42.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.3519, allocations: 1.312 kB / 401 MB, free: 42.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.352, allocations: 10.69 kB / 401 MB, free: 42.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.352, allocations: 1.281 kB / 401 MB, free: 42.95 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.352, allocations: 5.188 kB / 401 MB, free: 42.95 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000288/0.3523, allocations: 184.4 kB / 401.2 MB, free: 42.8 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.112e-05/0.3524, allocations: 121.5 kB / 401.3 MB, free: 42.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.726e-05/0.3524, allocations: 3.094 kB / 401.3 MB, free: 42.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.743e-05/0.3525, allocations: 2.75 kB / 401.3 MB, free: 42.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.779e-05/0.3525, allocations: 12.33 kB / 401.4 MB, free: 42.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.3526, allocations: 12.92 kB / 401.4 MB, free: 42.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002386/0.3528, allocations: 247.3 kB / 401.6 MB, free: 42.51 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3528, allocations: 0 / 401.6 MB, free: 42.51 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000293/0.3531, allocations: 36 kB / 401.6 MB, free: 42.5 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.0009288/0.354, allocations: 431.4 kB / 402.1 MB, free: 42.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002612/0.3543, allocations: 91.55 kB / 402.2 MB, free: 42.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3543, allocations: 4.062 kB / 402.2 MB, free: 42.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.141e-05/0.3544, allocations: 29.77 kB / 402.2 MB, free: 42.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004376/0.3549, allocations: 82.06 kB / 402.3 MB, free: 42.05 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006091/0.3555, allocations: 391.2 kB / 402.6 MB, free: 41.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001821/0.3557, allocations: 0.7558 MB / 403.4 MB, free: 41.03 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.353e-05/0.3558, allocations: 22.48 kB / 403.4 MB, free: 41.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.093e-05/0.3558, allocations: 27.7 kB / 403.5 MB, free: 41.01 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3558, allocations: 0 / 403.5 MB, free: 41.01 MB / 318.1 MB Notification: Performance of Templates: time 0.006913/0.3628, allocations: 3.062 MB / 406.5 MB, free: 39.46 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches