Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001353/0.001353, allocations: 174.9 kB / 16.45 MB, free: 5.684 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.367/1.367, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0007606/0.0007607, allocations: 82.36 kB / 270.9 MB, free: 8.355 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.06788/0.06788, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004208/0.0004208, allocations: 19.98 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08698/0.08742, allocations: 50.37 MB / 442.4 MB, free: 16.47 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample): time 0.001557/0.08904, allocations: 1.246 MB / 443.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007451/0.0898, allocations: 0.5078 MB / 444.1 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.934e-05/0.0899, allocations: 4 kB / 444.1 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.147e-05/0.08994, allocations: 3.938 kB / 444.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.09008, allocations: 7.875 kB / 444.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002592/0.09035, allocations: 47.83 kB / 444.2 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.951e-05/0.09045, allocations: 39.86 kB / 444.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.09056, allocations: 20.17 kB / 444.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.147e-05/0.09064, allocations: 19.86 kB / 444.3 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.222e-05/0.0907, allocations: 15.92 kB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.09073, allocations: 4 kB / 444.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.314e-05/0.09074, allocations: 0 / 444.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.298e-05/0.09078, allocations: 11.92 kB / 444.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.161e-05/0.09081, allocations: 37.64 kB / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.757e-05/0.09088, allocations: 35.88 kB / 444.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.0909, allocations: 0 / 444.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.0909, allocations: 8 kB / 444.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.09091, allocations: 0 / 444.4 MB, free: 14.43 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004114/0.09133, allocations: 371.3 kB / 444.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.09138, allocations: 8.031 kB / 444.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.634e-05/0.09142, allocations: 7.906 kB / 444.7 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.09158, allocations: 190.9 kB / 444.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.09159, allocations: 4 kB / 444.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/0.09161, allocations: 8 kB / 444.9 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002557/0.09187, allocations: 109 kB / 445.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.0919, allocations: 3.938 kB / 445.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.09191, allocations: 0 / 445.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.09192, allocations: 0 / 445.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.841e-05/0.09201, allocations: 27.98 kB / 445.1 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002616/0.09228, allocations: 265.7 kB / 445.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.379e-05/0.09236, allocations: 49.14 kB / 445.4 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.682e-05/0.09242, allocations: 21.78 kB / 445.4 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.795e-05/0.09244, allocations: 0 / 445.4 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.511e-05/0.09246, allocations: 30.56 kB / 445.4 MB, free: 13.17 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.09247, allocations: 4 kB / 445.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.000238/0.09271, allocations: 77.61 kB / 445.5 MB, free: 13.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/0.09276, allocations: 85.05 kB / 445.6 MB, free: 12.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.153e-05/0.09286, allocations: 145.5 kB / 445.7 MB, free: 12.83 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.695e-06/0.09287, allocations: 25.7 kB / 445.8 MB, free: 12.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.367e-05/0.09291, allocations: 96.08 kB / 445.9 MB, free: 12.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.469e-05/0.09293, allocations: 7.891 kB / 445.9 MB, free: 12.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-06/0.09294, allocations: 0 / 445.9 MB, free: 12.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.342e-05/0.09299, allocations: 319 kB / 446.2 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.922e-05/0.09304, allocations: 8 kB / 446.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.673e-05/0.09308, allocations: 21.7 kB / 446.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.044e-05/0.09313, allocations: 15.98 kB / 446.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.09315, allocations: 8 kB / 446.2 MB, free: 12.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001029/0.09326, allocations: 57.62 kB / 446.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.09328, allocations: 4 kB / 446.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.09329, allocations: 4 kB / 446.3 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.09331, allocations: 0 / 446.3 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.549e-05/0.09338, allocations: 4 kB / 446.3 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.0934, allocations: 3.984 kB / 446.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.759e-05/0.09344, allocations: 12.02 kB / 446.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.09345, allocations: 0 / 446.3 MB, free: 12.22 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: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.928e-05/0.09352, allocations: 121.6 kB / 446.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.687e-05/0.09357, allocations: 41.53 kB / 446.5 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.678e-05/0.0936, allocations: 15.83 kB / 446.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.09361, allocations: 0 / 446.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.09362, allocations: 4 kB / 446.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.09362, allocations: 0 / 446.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.09375, allocations: 173.6 kB / 446.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.09376, allocations: 0 / 446.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.423e-05/0.09381, allocations: 11.98 kB / 446.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.09382, allocations: 0 / 446.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.667e-06/0.09384, allocations: 7.938 kB / 446.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.09384, allocations: 0 / 446.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.09385, allocations: 4 kB / 446.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001271/0.09398, allocations: 160.3 kB / 446.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.002e-05/0.09403, allocations: 93 kB / 446.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.09405, allocations: 11.92 kB / 447 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.36e-05/0.09412, allocations: 0 / 447 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.195e-05/0.09416, allocations: 4 kB / 447 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-06/0.09417, allocations: 0 / 447 MB, free: 11.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.822e-05/0.09422, allocations: 107.2 kB / 447.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09423, allocations: 4.031 kB / 447.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001947/0.09442, allocations: 7.953 kB / 447.1 MB, free: 11.37 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: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.986e-05/0.0945, allocations: 91.25 kB / 447.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000131/0.09464, allocations: 27.98 kB / 447.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.09465, allocations: 0 / 447.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.82e-05/0.09469, allocations: 20.05 kB / 447.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003439/0.09504, allocations: 20.03 kB / 447.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003346/0.09539, allocations: 203.2 kB / 447.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001374/0.09554, allocations: 0.7005 MB / 448.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.596e-05/0.09557, allocations: 11.44 kB / 448.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.09558, allocations: 0 / 448.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of Templates: time 0.001905/0.09749, allocations: 0.7526 MB / 448.9 MB, free: 9.48 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches