Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008699/0.008699, 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.001486/0.001486, allocations: 199.5 kB / 16.84 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.787/1.787, allocations: 205.1 MB / 222.7 MB, free: 4.73 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.0819/0.0819, 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.001826/0.001826, allocations: 75.89 kB / 342.8 MB, free: 21.19 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1254, allocations: 49.39 MB / 392.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.003163/0.1287, allocations: 1.551 MB / 393.7 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004496/0.1291, allocations: 135.6 kB / 393.9 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.423e-05/0.1293, allocations: 3.938 kB / 393.9 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.171e-05/0.1293, allocations: 0 / 393.9 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001544/0.1295, allocations: 15.92 kB / 393.9 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002661/0.1298, allocations: 27.98 kB / 393.9 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.268e-05/0.1299, allocations: 31.86 kB / 393.9 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.13, allocations: 15.97 kB / 394 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.642e-05/0.13, allocations: 15.94 kB / 394 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.44e-05/0.1301, allocations: 7.922 kB / 394 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.866e-05/0.1301, allocations: 7.938 kB / 394 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.395e-05/0.1302, allocations: 0 / 394 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.021e-05/0.1302, allocations: 15.92 kB / 394 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.138e-05/0.1303, allocations: 15.88 kB / 394 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.554e-05/0.1304, allocations: 35.81 kB / 394.1 MB, free: 1.816 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1304, allocations: 4 kB / 394.1 MB, free: 1.812 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1304, allocations: 0 / 394.1 MB, free: 1.812 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.117e-06/0.1304, allocations: 0 / 394.1 MB, free: 1.812 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005211/0.1309, allocations: 367.4 kB / 394.4 MB, free: 1.402 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.131, allocations: 8.031 kB / 394.4 MB, free: 1.395 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.505e-05/0.131, allocations: 8.844 kB / 394.4 MB, free: 1.387 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002131/0.1312, allocations: 188.2 kB / 394.6 MB, free: 1.164 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.1312, allocations: 384 / 394.6 MB, free: 1.164 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.1313, allocations: 8.312 kB / 394.6 MB, free: 1.156 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.1315, allocations: 93.61 kB / 394.7 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.1315, allocations: 192 / 394.7 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.1316, allocations: 3.938 kB / 394.7 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.1316, allocations: 0 / 394.7 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.54e-05/0.1317, allocations: 23.86 kB / 394.7 MB, free: 1.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003815/0.132, allocations: 261.7 kB / 395 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.82e-05/0.1321, allocations: 49.08 kB / 395 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.525e-05/0.1322, allocations: 13.78 kB / 395.1 MB, free: 0.625 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.041e-05/0.1322, allocations: 11.98 kB / 395.1 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.1323, allocations: 30.56 kB / 395.1 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.1323, allocations: 0 / 395.1 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002333/0.1325, allocations: 57.62 kB / 395.2 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.754e-05/0.1326, allocations: 81.11 kB / 395.2 MB, free: 424 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001255/0.1327, allocations: 142.2 kB / 395.4 MB, free: 268 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.1327, allocations: 25.7 kB / 395.4 MB, free: 236 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.735e-05/0.1328, allocations: 84.14 kB / 395.5 MB, free: 148 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.073e-05/0.1328, allocations: 4 kB / 395.5 MB, free: 144 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.123e-05/0.1328, allocations: 13.72 kB / 395.5 MB, free: 124 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.133, allocations: 318.8 kB / 395.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.016e-05/0.133, allocations: 8 kB / 395.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.742e-05/0.1331, allocations: 25.64 kB / 395.8 MB, free: 15.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.707e-05/0.1332, allocations: 25.72 kB / 395.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1332, allocations: 0 / 395.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001101/0.1333, allocations: 61.45 kB / 395.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.1333, allocations: 4 kB / 395.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.1333, allocations: 128 / 395.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.1333, allocations: 4 kB / 395.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.878e-05/0.1334, allocations: 4 kB / 395.9 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.1334, allocations: 4 kB / 395.9 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.899e-05/0.1335, allocations: 7.922 kB / 396 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.1335, allocations: 0 / 396 MB, free: 15.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001004/0.1336, allocations: 121.8 kB / 396.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.682e-05/0.1336, allocations: 37.64 kB / 396.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.263e-05/0.1337, allocations: 15.8 kB / 396.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.1337, allocations: 4.031 kB / 396.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1337, allocations: 0 / 396.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1337, allocations: 0 / 396.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/0.1339, allocations: 169.6 kB / 396.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1339, allocations: 0 / 396.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.041e-05/0.134, allocations: 11.98 kB / 396.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.134, allocations: 0 / 396.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.134, allocations: 0 / 396.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.134, allocations: 0 / 396.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.134, allocations: 4 kB / 396.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001961/0.1342, allocations: 156.2 kB / 396.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.112e-05/0.1343, allocations: 100.9 kB / 396.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.1343, allocations: 3.938 kB / 396.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.708e-05/0.1344, allocations: 7.984 kB / 396.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.139e-05/0.1344, allocations: 0 / 396.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-06/0.1344, allocations: 0 / 396.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.92e-05/0.1345, allocations: 107.3 kB / 396.7 MB, free: 14.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1345, allocations: 0 / 396.7 MB, free: 14.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002083/0.1347, allocations: 4 kB / 396.7 MB, free: 14.81 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 9.974e-05/0.1348, allocations: 95.23 kB / 396.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001208/0.1349, allocations: 19.98 kB / 396.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.135, allocations: 0 / 396.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.813e-05/0.135, allocations: 16.06 kB / 396.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004018/0.1354, allocations: 19.95 kB / 396.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003368/0.1357, allocations: 152.1 kB / 397 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.1361, allocations: 0.6887 MB / 397.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.126e-05/0.1361, allocations: 4.406 kB / 397.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.594e-05/0.1361, allocations: 7.438 kB / 397.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1361, allocations: 4 kB / 397.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of Templates: time 0.002654/0.1388, allocations: 404.2 kB / 398.1 MB, free: 13.36 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches