Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008691/0.008691, allocations: 91.59 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.001576/0.001577, allocations: 195.3 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.619/1.619, allocations: 205.1 MB / 222.7 MB, free: 4.711 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.09007/0.09007, allocations: 12.59 MB / 282.6 MB, free: 8.855 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.001679/0.001679, allocations: 87.88 kB / 342.8 MB, free: 21.19 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1296, allocations: 49.39 MB / 392.2 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.003667/0.1333, allocations: 1.973 MB / 394.2 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001771/0.1351, allocations: 0.9792 MB / 395.1 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.1353, allocations: 7.938 kB / 395.1 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006496/0.136, allocations: 147.7 kB / 395.3 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002707/0.1363, allocations: 107.6 kB / 395.4 MB, free: 488 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005152/0.1368, allocations: 159.7 kB / 395.5 MB, free: 328 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002934/0.1371, allocations: 187.5 kB / 395.7 MB, free: 140 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.1372, allocations: 33.95 kB / 395.8 MB, free: 104 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.1373, allocations: 75.52 kB / 395.8 MB, free: 28 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001246/0.1375, allocations: 79.61 kB / 395.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.497e-05/0.1375, allocations: 4 kB / 395.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.1376, allocations: 47.92 kB / 396 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.741e-05/0.1377, allocations: 35.84 kB / 396 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.018e-05/0.1378, allocations: 67.53 kB / 396.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002376/0.138, allocations: 211.3 kB / 396.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1381, allocations: 0 / 396.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1381, allocations: 0 / 396.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.1381, allocations: 0 / 396.3 MB, free: 15.59 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.0007318/0.1388, allocations: 0.5195 MB / 396.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.1389, allocations: 8.031 kB / 396.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.611e-05/0.1389, allocations: 24.66 kB / 396.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004084/0.1393, allocations: 266.8 kB / 397.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.1394, allocations: 8.375 kB / 397.1 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.79e-05/0.1394, allocations: 12.12 kB / 397.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003403/0.1397, allocations: 175.4 kB / 397.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.1397, allocations: 0 / 397.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.1398, allocations: 0 / 397.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.1398, allocations: 8 kB / 397.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001042/0.1399, allocations: 39.91 kB / 397.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000459/0.1404, allocations: 371.3 kB / 397.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002515/0.1407, allocations: 142.5 kB / 397.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.155e-05/0.1408, allocations: 55.42 kB / 397.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.1408, allocations: 4 kB / 397.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001657/0.141, allocations: 79.33 kB / 398 MB, free: 13.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.633e-06/0.141, allocations: 0 / 398 MB, free: 13.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004038/0.1414, allocations: 161.6 kB / 398.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.72e-05/0.1415, allocations: 162.2 kB / 398.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002621/0.1418, allocations: 265 kB / 398.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.1418, allocations: 33.7 kB / 398.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.485e-05/0.1419, allocations: 120.3 kB / 398.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.605e-05/0.1419, allocations: 19.83 kB / 398.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.246e-05/0.142, allocations: 37.61 kB / 398.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1421, allocations: 334.8 kB / 399.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.525e-05/0.1422, allocations: 19.98 kB / 399.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.692e-05/0.1423, allocations: 83.66 kB / 399.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.1425, allocations: 93.97 kB / 399.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1425, allocations: 3.938 kB / 399.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002057/0.1427, allocations: 129.4 kB / 399.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.1427, allocations: 11.94 kB / 399.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-05/0.1428, allocations: 7.922 kB / 399.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.1428, allocations: 7.984 kB / 399.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.926e-05/0.1429, allocations: 8 kB / 399.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.1429, allocations: 4 kB / 399.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.048e-05/0.143, allocations: 15.83 kB / 399.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.143, allocations: 8 kB / 399.5 MB, free: 12.03 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,sample.u,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.000123/0.1431, allocations: 150 kB / 399.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.1432, allocations: 69.77 kB / 399.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.94e-05/0.1433, allocations: 21.7 kB / 399.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.1433, allocations: 4 kB / 399.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1433, allocations: 4 kB / 399.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.1433, allocations: 7.922 kB / 399.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001941/0.1435, allocations: 229.5 kB / 399.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1435, allocations: 0 / 399.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.66e-05/0.1436, allocations: 12.08 kB / 399.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1436, allocations: 4 kB / 399.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.1436, allocations: 0 / 399.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.1436, allocations: 4 kB / 399.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.155e-06/0.1436, allocations: 3.938 kB / 400 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002523/0.1439, allocations: 179.3 kB / 400.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.053e-05/0.144, allocations: 108.9 kB / 400.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.144, allocations: 0 / 400.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.227e-05/0.1441, allocations: 7.984 kB / 400.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.307e-05/0.1441, allocations: 8 kB / 400.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.1441, allocations: 7.938 kB / 400.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001834/0.1443, allocations: 196.5 kB / 400.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1443, allocations: 0 / 400.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002737/0.1446, allocations: 39.89 kB / 400.5 MB, free: 10.89 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,sample.u,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.0009267/0.1455, allocations: 421.1 kB / 400.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002091/0.1458, allocations: 75.84 kB / 401 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1458, allocations: 0 / 401 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.228e-05/0.1459, allocations: 31.92 kB / 401 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004197/0.1463, allocations: 73.7 kB / 401.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005937/0.1469, allocations: 379.3 kB / 401.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.1472, allocations: 0.7362 MB / 402.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.322e-05/0.1473, allocations: 21.55 kB / 402.2 MB, free: 9.102 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.504e-05/0.1474, allocations: 23.42 kB / 402.2 MB, free: 9.082 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1474, allocations: 0 / 402.2 MB, free: 9.082 MB / 302.1 MB Notification: Performance of Templates: time 0.005917/0.1533, allocations: 2.525 MB / 404.8 MB, free: 6.551 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches