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.002139/0.002138, allocations: 99.06 kB / 16.44 MB, free: 6.5 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.002686/0.002686, allocations: 192 kB / 17.38 MB, free: 5.715 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.705/1.705, allocations: 205.1 MB / 223.3 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.08082/0.08082, allocations: 12.58 MB / 283.2 MB, free: 15.41 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.001742/0.001742, allocations: 81.69 kB / 394.2 MB, free: 45.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1123, allocations: 49.4 MB / 443.6 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.004094/0.1165, allocations: 1.899 MB / 445.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002005/0.1185, allocations: 1.08 MB / 446.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001404/0.1187, allocations: 4 kB / 446.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003438/0.119, allocations: 71.66 kB / 446.6 MB, free: 13.43 MB / 334.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.0003131/0.1194, allocations: 95.58 kB / 446.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009008/0.1203, allocations: 227.3 kB / 446.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004985/0.1208, allocations: 187.5 kB / 447.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.1209, allocations: 45.45 kB / 447.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.1211, allocations: 83.62 kB / 447.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001668/0.1213, allocations: 75.69 kB / 447.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.682e-05/0.1213, allocations: 8 kB / 447.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001572/0.1215, allocations: 67.94 kB / 447.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.1216, allocations: 51.78 kB / 447.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001235/0.1217, allocations: 91.41 kB / 447.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004345/0.1222, allocations: 243.2 kB / 447.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1222, allocations: 8 kB / 447.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1222, allocations: 0 / 447.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.828e-06/0.1222, allocations: 0 / 447.8 MB, free: 12.27 MB / 334.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.0009798/0.1232, allocations: 0.5427 MB / 448.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.1233, allocations: 8.031 kB / 448.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.932e-05/0.1234, allocations: 28.66 kB / 448.3 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000559/0.1239, allocations: 295.5 kB / 448.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.097e-05/0.124, allocations: 8.375 kB / 448.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.644e-05/0.124, allocations: 8.125 kB / 448.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005399/0.1245, allocations: 184.3 kB / 448.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.1246, allocations: 4 kB / 448.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.347e-05/0.1246, allocations: 4 kB / 448.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.1246, allocations: 4 kB / 448.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001399/0.1248, allocations: 35.92 kB / 448.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008118/0.1256, allocations: 395.2 kB / 449.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003346/0.1259, allocations: 142.5 kB / 449.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.126, allocations: 63.36 kB / 449.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.299e-05/0.1261, allocations: 4 kB / 449.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002371/0.1263, allocations: 83.31 kB / 449.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.633e-06/0.1264, allocations: 0 / 449.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005465/0.1269, allocations: 169.2 kB / 449.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001735/0.1271, allocations: 187.9 kB / 449.9 MB, free: 9.844 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004433/0.1275, allocations: 338.6 kB / 450.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.1276, allocations: 33.64 kB / 450.3 MB, free: 9.465 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.1277, allocations: 128.3 kB / 450.4 MB, free: 9.336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.525e-05/0.1278, allocations: 20.33 kB / 450.4 MB, free: 9.316 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.351e-05/0.1279, allocations: 37.62 kB / 450.4 MB, free: 9.273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002136/0.1281, allocations: 338.8 kB / 450.8 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.229e-05/0.1282, allocations: 27.98 kB / 450.8 MB, free: 8.906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.1283, allocations: 104.5 kB / 450.9 MB, free: 8.773 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001899/0.1285, allocations: 101.9 kB / 451 MB, free: 8.652 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1285, allocations: 4 kB / 451 MB, free: 8.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002777/0.1288, allocations: 137.5 kB / 451.1 MB, free: 8.508 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/0.1289, allocations: 8 kB / 451.2 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.1289, allocations: 4.062 kB / 451.2 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.881e-05/0.1289, allocations: 4 kB / 451.2 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001544/0.1291, allocations: 23.98 kB / 451.2 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.1291, allocations: 4 kB / 451.2 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.123e-05/0.1292, allocations: 12.03 kB / 451.2 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.1292, allocations: 8.047 kB / 451.2 MB, free: 8.445 MB / 334.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.0002162/0.1294, allocations: 165.7 kB / 451.4 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.1296, allocations: 81.34 kB / 451.4 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.826e-05/0.1297, allocations: 29.7 kB / 451.5 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.1297, allocations: 0 / 451.5 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.1297, allocations: 0 / 451.5 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.506e-05/0.1297, allocations: 7.938 kB / 451.5 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002975/0.13, allocations: 241.6 kB / 451.7 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.13, allocations: 0 / 451.7 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.637e-05/0.1301, allocations: 15.98 kB / 451.7 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.133e-06/0.1301, allocations: 4 kB / 451.7 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.1302, allocations: 4 kB / 451.7 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.608e-06/0.1302, allocations: 11.92 kB / 451.8 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1302, allocations: 0 / 451.8 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003845/0.1306, allocations: 183.3 kB / 451.9 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/0.1307, allocations: 112.8 kB / 452 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.978e-05/0.1308, allocations: 7.984 kB / 452.1 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.92e-05/0.1309, allocations: 4 kB / 452.1 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.233e-05/0.1309, allocations: 11.98 kB / 452.1 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.639e-05/0.131, allocations: 7.938 kB / 452.1 MB, free: 7.461 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002846/0.1313, allocations: 245.9 kB / 452.3 MB, free: 7.223 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.843e-06/0.1313, allocations: 4 kB / 452.3 MB, free: 7.219 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003586/0.1317, allocations: 51.8 kB / 452.4 MB, free: 7.168 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,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.001209/0.1329, allocations: 408.8 kB / 452.8 MB, free: 6.758 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002611/0.1331, allocations: 79.91 kB / 452.8 MB, free: 6.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1332, allocations: 3.938 kB / 452.9 MB, free: 6.676 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.596e-05/0.1332, allocations: 32.36 kB / 452.9 MB, free: 6.645 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004577/0.1337, allocations: 83.05 kB / 453 MB, free: 6.562 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007463/0.1345, allocations: 381.9 kB / 453.3 MB, free: 6.152 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.1348, allocations: 0.744 MB / 454.1 MB, free: 5.379 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001074/0.1349, allocations: 37.5 kB / 454.1 MB, free: 5.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.952e-05/0.135, allocations: 23.44 kB / 454.1 MB, free: 5.316 MB / 334.1 MB Notification: Performance of SimCode: time 2.926e-06/0.135, allocations: 0 / 454.1 MB, free: 5.316 MB / 334.1 MB Notification: Performance of Templates: time 0.00886/0.1439, allocations: 3.061 MB / 457.2 MB, free: 2.254 MB / 334.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