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.008312/0.008312, allocations: 92.27 kB / 15.91 MB, free: 6.273 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.001748/0.001749, allocations: 196.1 kB / 16.83 MB, free: 6.188 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.702/1.702, allocations: 205.1 MB / 222.7 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08611/0.08611, allocations: 12.59 MB / 282.6 MB, free: 8.852 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.001641/0.001642, allocations: 83.83 kB / 342.8 MB, free: 21.19 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1083, allocations: 49.4 MB / 392.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.003563/0.1119, allocations: 1.957 MB / 394.1 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001998/0.114, allocations: 1.073 MB / 395.2 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.1142, allocations: 3.938 kB / 395.2 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00036/0.1145, allocations: 63.8 kB / 395.3 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002103/0.1148, allocations: 75.73 kB / 395.4 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006885/0.1155, allocations: 223.5 kB / 395.6 MB, free: 300 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002156/0.1157, allocations: 167.5 kB / 395.7 MB, free: 132 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.1158, allocations: 41.55 kB / 395.8 MB, free: 92 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.345e-05/0.1159, allocations: 67.64 kB / 395.8 MB, free: 24 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/0.1161, allocations: 79.67 kB / 395.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.1161, allocations: 11.92 kB / 395.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.1163, allocations: 47.98 kB / 396 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.265e-05/0.1163, allocations: 51.77 kB / 396 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.371e-05/0.1164, allocations: 75.47 kB / 396.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002842/0.1167, allocations: 235.4 kB / 396.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1167, allocations: 0 / 396.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1168, allocations: 0 / 396.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.1168, allocations: 0 / 396.3 MB, free: 15.53 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007895/0.1176, allocations: 0.535 MB / 396.9 MB, free: 14.94 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.1176, allocations: 8.031 kB / 396.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.298e-05/0.1177, allocations: 32.64 kB / 396.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003504/0.118, allocations: 299.4 kB / 397.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.1181, allocations: 8.375 kB / 397.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.082e-05/0.1181, allocations: 8.125 kB / 397.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003548/0.1185, allocations: 188.3 kB / 397.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.1185, allocations: 0 / 397.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.1185, allocations: 4 kB / 397.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.1185, allocations: 0 / 397.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001192/0.1186, allocations: 39.92 kB / 397.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005456/0.1192, allocations: 399.2 kB / 397.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002693/0.1195, allocations: 142.5 kB / 398 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.709e-05/0.1196, allocations: 59.42 kB / 398 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-05/0.1196, allocations: 4 kB / 398 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002318/0.1199, allocations: 79.31 kB / 398.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.1199, allocations: 4 kB / 398.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004131/0.1203, allocations: 165.3 kB / 398.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.1204, allocations: 191.9 kB / 398.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003221/0.1207, allocations: 334.7 kB / 398.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.1208, allocations: 29.7 kB / 398.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.72e-05/0.1208, allocations: 144.6 kB / 399 MB, free: 12.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.56e-05/0.1209, allocations: 19.73 kB / 399 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.403e-05/0.121, allocations: 29.72 kB / 399 MB, free: 12.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1211, allocations: 342.8 kB / 399.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.168e-05/0.1212, allocations: 23.98 kB / 399.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.1213, allocations: 100.6 kB / 399.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001644/0.1215, allocations: 102.1 kB / 399.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1215, allocations: 4 kB / 399.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002441/0.1218, allocations: 141.2 kB / 399.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.1218, allocations: 4 kB / 399.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.1218, allocations: 4 kB / 399.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.1218, allocations: 0 / 399.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.1219, allocations: 31.92 kB / 399.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.1219, allocations: 4.188 kB / 399.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.999e-05/0.122, allocations: 7.938 kB / 399.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.1221, allocations: 8 kB / 399.8 MB, free: 11.71 MB / 302.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.0001404/0.1222, allocations: 161.7 kB / 399.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.82e-05/0.1223, allocations: 81.34 kB / 400 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.608e-05/0.1224, allocations: 25.7 kB / 400 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.1224, allocations: 4 kB / 400 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.1224, allocations: 4.094 kB / 400 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.269e-06/0.1224, allocations: 3.938 kB / 400 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.1226, allocations: 245.5 kB / 400.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1226, allocations: 0 / 400.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.176e-05/0.1227, allocations: 12 kB / 400.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1227, allocations: 0 / 400.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.1227, allocations: 11.98 kB / 400.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-06/0.1228, allocations: 0 / 400.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.1228, allocations: 4 kB / 400.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003075/0.1231, allocations: 187.2 kB / 400.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.851e-05/0.1232, allocations: 108.9 kB / 400.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.529e-05/0.1232, allocations: 8 kB / 400.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.943e-05/0.1233, allocations: 4 kB / 400.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.575e-05/0.1234, allocations: 12.05 kB / 400.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.106e-05/0.1234, allocations: 11.94 kB / 400.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002308/0.1236, allocations: 249.9 kB / 400.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1236, allocations: 0 / 400.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002935/0.1239, allocations: 36 kB / 400.9 MB, free: 10.45 MB / 302.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.0009479/0.1249, allocations: 424.9 kB / 401.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002404/0.1251, allocations: 80.22 kB / 401.4 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1252, allocations: 4.062 kB / 401.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.099e-05/0.1252, allocations: 27.92 kB / 401.4 MB, free: 9.914 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004407/0.1257, allocations: 85.72 kB / 401.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006836/0.1264, allocations: 439.9 kB / 401.9 MB, free: 9.371 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003612/0.1268, allocations: 0.7517 MB / 402.7 MB, free: 8.594 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001002/0.1269, allocations: 25.53 kB / 402.7 MB, free: 8.566 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.877e-05/0.1269, allocations: 27.42 kB / 402.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1269, allocations: 0 / 402.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of Templates: time 0.006314/0.1333, allocations: 2.927 MB / 405.7 MB, free: 5.609 MB / 302.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