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.001238/0.001238, allocations: 108.3 kB / 16.45 MB, free: 6.434 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.001315/0.001315, allocations: 190.1 kB / 17.39 MB, free: 5.691 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.688/1.688, allocations: 205.1 MB / 223.3 MB, free: 12.21 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.08003/0.08003, allocations: 12.59 MB / 283.2 MB, free: 15.4 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.001808/0.001808, allocations: 91.69 kB / 394.2 MB, free: 45.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1216, allocations: 49.4 MB / 443.6 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.005073/0.1267, allocations: 1.899 MB / 445.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002347/0.1292, allocations: 1.084 MB / 446.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002096/0.1294, allocations: 4 kB / 446.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004395/0.1299, allocations: 75.59 kB / 446.6 MB, free: 13.42 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.0003428/0.1302, allocations: 95.58 kB / 446.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008464/0.1311, allocations: 227.3 kB / 446.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003586/0.1315, allocations: 179.5 kB / 447.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001849/0.1317, allocations: 49.45 kB / 447.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.1318, allocations: 75.62 kB / 447.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001897/0.132, allocations: 79.69 kB / 447.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.212e-05/0.1321, allocations: 8 kB / 447.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002297/0.1323, allocations: 71.88 kB / 447.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001238/0.1324, allocations: 51.78 kB / 447.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001356/0.1326, allocations: 79.47 kB / 447.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004946/0.1331, allocations: 247.2 kB / 447.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1331, allocations: 4 kB / 447.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.338e-06/0.1331, allocations: 0 / 447.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.1331, allocations: 3.938 kB / 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.0009295/0.1341, allocations: 0.5428 MB / 448.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.1341, allocations: 8.031 kB / 448.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.754e-05/0.1342, allocations: 24.66 kB / 448.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004873/0.1347, allocations: 295.5 kB / 448.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.1347, allocations: 8.375 kB / 448.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/0.1347, allocations: 12.06 kB / 448.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003923/0.1351, allocations: 188.3 kB / 448.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1352, allocations: 0 / 448.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.1352, allocations: 4 kB / 448.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.1352, allocations: 4 kB / 448.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001166/0.1353, allocations: 35.92 kB / 448.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000563/0.1359, allocations: 403.1 kB / 449.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002876/0.1362, allocations: 134.5 kB / 449.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.1363, allocations: 67.36 kB / 449.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.1363, allocations: 4 kB / 449.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001751/0.1365, allocations: 79.31 kB / 449.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.723e-06/0.1365, allocations: 0 / 449.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004189/0.137, allocations: 173.2 kB / 449.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.1371, allocations: 187.9 kB / 449.9 MB, free: 9.848 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003804/0.1375, allocations: 338.6 kB / 450.2 MB, free: 9.508 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.1375, allocations: 33.64 kB / 450.3 MB, free: 9.469 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.1376, allocations: 128.3 kB / 450.4 MB, free: 9.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.1377, allocations: 16.33 kB / 450.4 MB, free: 9.324 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.1378, allocations: 37.62 kB / 450.4 MB, free: 9.281 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.138, allocations: 342.8 kB / 450.8 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.127e-05/0.138, allocations: 27.92 kB / 450.8 MB, free: 8.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.1382, allocations: 100.6 kB / 450.9 MB, free: 8.781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001633/0.1384, allocations: 101.9 kB / 451 MB, free: 8.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1384, allocations: 4 kB / 451 MB, free: 8.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002606/0.1386, allocations: 145.3 kB / 451.1 MB, free: 8.508 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.1387, allocations: 4 kB / 451.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.1387, allocations: 4 kB / 451.2 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.1387, allocations: 0 / 451.2 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.1388, allocations: 27.98 kB / 451.2 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.1388, allocations: 3.938 kB / 451.2 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.124e-05/0.1389, allocations: 12.03 kB / 451.2 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.139, allocations: 12 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.0001555/0.1391, allocations: 158.1 kB / 451.4 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.1392, allocations: 81.34 kB / 451.4 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.652e-05/0.1393, allocations: 25.7 kB / 451.5 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.1393, allocations: 4 kB / 451.5 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.1393, allocations: 4 kB / 451.5 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.1394, allocations: 3.938 kB / 451.5 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000277/0.1396, allocations: 249.6 kB / 451.7 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1396, allocations: 0 / 451.7 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.675e-05/0.1397, allocations: 15.94 kB / 451.7 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1397, allocations: 0 / 451.7 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.1398, allocations: 11.98 kB / 451.8 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.1398, allocations: 0 / 451.8 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/0.1398, allocations: 4 kB / 451.8 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003018/0.1401, allocations: 183.3 kB / 451.9 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/0.1402, allocations: 112.8 kB / 452 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.701e-05/0.1403, allocations: 8 kB / 452.1 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.631e-05/0.1403, allocations: 4 kB / 452.1 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.59e-05/0.1404, allocations: 11.98 kB / 452.1 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/0.1405, allocations: 7.938 kB / 452.1 MB, free: 7.465 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002737/0.1407, allocations: 245.9 kB / 452.3 MB, free: 7.227 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.675e-06/0.1407, allocations: 4 kB / 452.3 MB, free: 7.223 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.1411, allocations: 43.88 kB / 452.4 MB, free: 7.18 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.001166/0.1422, allocations: 412.7 kB / 452.8 MB, free: 6.766 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002915/0.1425, allocations: 83.84 kB / 452.8 MB, free: 6.684 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1425, allocations: 0 / 452.8 MB, free: 6.684 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.229e-05/0.1426, allocations: 32.36 kB / 452.9 MB, free: 6.652 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000479/0.1431, allocations: 82.8 kB / 453 MB, free: 6.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007683/0.1439, allocations: 378 kB / 453.3 MB, free: 6.164 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004293/0.1444, allocations: 0.7479 MB / 454.1 MB, free: 5.387 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.468e-05/0.1444, allocations: 29.52 kB / 454.1 MB, free: 5.355 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.856e-05/0.1445, allocations: 27.44 kB / 454.1 MB, free: 5.328 MB / 334.1 MB Notification: Performance of SimCode: time 1.753e-06/0.1445, allocations: 0 / 454.1 MB, free: 5.328 MB / 334.1 MB Notification: Performance of Templates: time 0.007343/0.1519, allocations: 3.124 MB / 457.3 MB, free: 2.203 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