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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.00104/0.00104, allocations: 173.3 kB / 16.8 MB, free: 5.008 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.46/1.46, allocations: 205.4 MB / 223 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008147/0.0008147, allocations: 104.4 kB / 271.3 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07954/0.07954, allocations: 12.59 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000403/0.0004031, allocations: 12 kB / 393.3 MB, free: 65.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09012/0.09054, allocations: 50.39 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.001601/0.09219, allocations: 1.207 MB / 444.9 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003356/0.09256, allocations: 135.6 kB / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.867e-05/0.09266, allocations: 0 / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.551e-05/0.0927, allocations: 0 / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001177/0.09283, allocations: 11.92 kB / 445 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002531/0.09309, allocations: 31.91 kB / 445.1 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.94e-05/0.09317, allocations: 23.94 kB / 445.1 MB, free: 14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.099e-05/0.09327, allocations: 15.98 kB / 445.1 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.69e-05/0.0933, allocations: 7.938 kB / 445.1 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.99e-05/0.09335, allocations: 11.88 kB / 445.1 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.016e-05/0.09337, allocations: 4 kB / 445.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.062e-05/0.09339, allocations: 0 / 445.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.487e-05/0.09344, allocations: 7.984 kB / 445.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.644e-05/0.09348, allocations: 49.5 kB / 445.2 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.046e-05/0.09355, allocations: 19.95 kB / 445.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.09356, allocations: 4 kB / 445.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.09357, allocations: 4 kB / 445.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.206e-06/0.09358, allocations: 0 / 445.2 MB, free: 13.88 MB / 298.7 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.0003386/0.09392, allocations: 355.6 kB / 445.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.09396, allocations: 8.031 kB / 445.6 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.396e-05/0.094, allocations: 8.844 kB / 445.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.09414, allocations: 188.1 kB / 445.8 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-06/0.09416, allocations: 12.23 kB / 445.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.131e-05/0.09418, allocations: 4.375 kB / 445.8 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002228/0.09441, allocations: 93.67 kB / 445.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.09443, allocations: 192 / 445.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.09445, allocations: 7.938 kB / 445.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.09446, allocations: 7.875 kB / 445.9 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.25e-05/0.09453, allocations: 19.98 kB / 445.9 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002743/0.09482, allocations: 257.8 kB / 446.2 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.283e-05/0.09489, allocations: 49.08 kB / 446.2 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.19e-05/0.09494, allocations: 25.78 kB / 446.2 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.93e-05/0.09498, allocations: 3.984 kB / 446.2 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.682e-05/0.095, allocations: 30.56 kB / 446.3 MB, free: 12.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.09501, allocations: 0 / 446.3 MB, free: 12.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002047/0.09522, allocations: 73.62 kB / 446.3 MB, free: 12.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.09527, allocations: 77.11 kB / 446.4 MB, free: 12.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.893e-05/0.09536, allocations: 139.4 kB / 446.6 MB, free: 12.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.121e-06/0.09538, allocations: 25.7 kB / 446.6 MB, free: 12.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.078e-05/0.09541, allocations: 88.14 kB / 446.7 MB, free: 12.19 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.496e-06/0.09543, allocations: 0 / 446.7 MB, free: 12.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.415e-06/0.09543, allocations: 0 / 446.7 MB, free: 12.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.572e-05/0.0955, allocations: 319 kB / 447 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.405e-05/0.09554, allocations: 11.98 kB / 447 MB, free: 11.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.952e-05/0.09557, allocations: 17.72 kB / 447 MB, free: 11.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.426e-05/0.09565, allocations: 33.77 kB / 447 MB, free: 11.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.09565, allocations: 0 / 447 MB, free: 11.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.713e-05/0.09576, allocations: 69.45 kB / 447.1 MB, free: 11.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.09578, allocations: 4.938 kB / 447.1 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.09579, allocations: 0 / 447.1 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.09581, allocations: 4 kB / 447.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.858e-05/0.09587, allocations: 4.062 kB / 447.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.09588, allocations: 4 kB / 447.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.872e-05/0.09592, allocations: 7.938 kB / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-06/0.09593, allocations: 0 / 447.1 MB, free: 11.7 MB / 298.7 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 6.219e-05/0.096, allocations: 121.8 kB / 447.3 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.893e-05/0.09605, allocations: 37.64 kB / 447.3 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.71e-05/0.09609, allocations: 15.83 kB / 447.3 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.0961, allocations: 3.984 kB / 447.3 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.09611, allocations: 4.031 kB / 447.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.09611, allocations: 0 / 447.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001245/0.09624, allocations: 169.5 kB / 447.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.09625, allocations: 4 kB / 447.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.685e-05/0.0963, allocations: 7.984 kB / 447.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.09631, allocations: 3.938 kB / 447.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.09632, allocations: 0 / 447.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.09632, allocations: 4 kB / 447.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.09633, allocations: 0 / 447.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001126/0.09644, allocations: 164.3 kB / 447.7 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.065e-05/0.09648, allocations: 89 kB / 447.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.117e-05/0.0965, allocations: 0 / 447.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.79e-05/0.09656, allocations: 11.98 kB / 447.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.689e-05/0.0966, allocations: 0 / 447.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.09661, allocations: 12.03 kB / 447.8 MB, free: 10.96 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.968e-05/0.09665, allocations: 99.77 kB / 447.9 MB, free: 10.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09666, allocations: 0 / 447.9 MB, free: 10.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002046/0.09687, allocations: 8 kB / 447.9 MB, free: 10.86 MB / 298.7 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 7.147e-05/0.09695, allocations: 95.23 kB / 448 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001054/0.09706, allocations: 23.92 kB / 448 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.09707, allocations: 4.125 kB / 448 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.268e-05/0.09711, allocations: 15.98 kB / 448 MB, free: 10.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003059/0.09742, allocations: 15.97 kB / 448 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002451/0.09768, allocations: 183.4 kB / 448.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001008/0.09779, allocations: 0.6809 MB / 448.9 MB, free: 9.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.997e-05/0.09782, allocations: 11.44 kB / 448.9 MB, free: 9.758 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.09782, allocations: 0 / 448.9 MB, free: 9.758 MB / 298.7 MB Notification: Performance of Templates: time 0.00153/0.09936, allocations: 0.6211 MB / 449.5 MB, free: 9.137 MB / 298.7 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/jenkins1/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