Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002193/0.002192, allocations: 177.8 kB / 8.403 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.162/2.162, allocations: 205.3 MB / 214.1 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001162/0.001162, allocations: 82.7 kB / 262.1 MB, free: 1.684 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.1063/0.1063, allocations: 12.59 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.879e-05/1.897e-05, allocations: 4 kB / 378.9 MB, free: 6.895 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3038, allocations: 50.37 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1377/0.4416, allocations: 77.58 MB / 0.495 GB, free: 4.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.442, allocations: 75.95 kB / 0.4951 GB, free: 4.656 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006038/0.448, allocations: 1.431 MB / 0.4965 GB, free: 3.227 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4481, allocations: 4 kB / 0.4965 GB, free: 3.223 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.4481, allocations: 4 kB / 0.4965 GB, free: 3.219 MB / 346.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.0004831/0.4486, allocations: 350.4 kB / 0.4968 GB, free: 2.832 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.4487, allocations: 8.031 kB / 0.4968 GB, free: 2.824 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.887e-05/0.4487, allocations: 15.78 kB / 0.4968 GB, free: 2.809 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/0.449, allocations: 191.9 kB / 0.497 GB, free: 2.582 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.449, allocations: 3.984 kB / 0.497 GB, free: 2.578 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.4491, allocations: 7.938 kB / 0.497 GB, free: 2.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000108/0.4492, allocations: 16 kB / 0.497 GB, free: 2.555 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002736/0.4495, allocations: 109.8 kB / 0.4971 GB, free: 2.426 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.4495, allocations: 0 / 0.4971 GB, free: 2.426 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.4495, allocations: 0 / 0.4971 GB, free: 2.426 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.4495, allocations: 0 / 0.4971 GB, free: 2.426 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004819/0.45, allocations: 255.2 kB / 0.4974 GB, free: 2.133 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001129/0.4502, allocations: 63.86 kB / 0.4974 GB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.847e-05/0.4502, allocations: 30.56 kB / 0.4975 GB, free: 2.004 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.948e-05/0.4503, allocations: 4 kB / 0.4975 GB, free: 2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/0.4503, allocations: 34.5 kB / 0.4975 GB, free: 1.957 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 2.966e-06/0.4503, allocations: 0 / 0.4975 GB, free: 1.957 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002289/0.4506, allocations: 57.59 kB / 0.4976 GB, free: 1.895 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.342e-05/0.4507, allocations: 114.8 kB / 0.4977 GB, free: 1.758 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/0.4508, allocations: 123.2 kB / 0.4978 GB, free: 1.633 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.807e-05/0.4509, allocations: 25.7 kB / 0.4978 GB, free: 1.602 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.451, allocations: 154.6 kB / 0.498 GB, free: 1.449 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.484e-05/0.451, allocations: 15.92 kB / 0.498 GB, free: 1.434 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-06/0.4511, allocations: 0 / 0.498 GB, free: 1.434 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.4512, allocations: 314.8 kB / 0.4983 GB, free: 1.117 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.525e-05/0.4512, allocations: 8 kB / 0.4983 GB, free: 1.109 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.634e-05/0.4513, allocations: 27.44 kB / 0.4983 GB, free: 1.07 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.961e-05/0.4514, allocations: 4 kB / 0.4983 GB, free: 1.066 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.4514, allocations: 0 / 0.4983 GB, free: 1.066 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001537/0.4515, allocations: 61.59 kB / 0.4984 GB, free: 1 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.4516, allocations: 4 kB / 0.4984 GB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.4516, allocations: 0 / 0.4984 GB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.4516, allocations: 4 kB / 0.4984 GB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.4518, allocations: 15.92 kB / 0.4984 GB, free: 0.9766 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.4518, allocations: 0 / 0.4984 GB, free: 0.9766 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.808e-05/0.4519, allocations: 8 kB / 0.4984 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.408e-06/0.4519, allocations: 0 / 0.4984 GB, free: 0.9688 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 0.0001069/0.452, allocations: 120.9 kB / 0.4985 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/0.4521, allocations: 49.53 kB / 0.4986 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.444e-05/0.4522, allocations: 11.97 kB / 0.4986 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.4522, allocations: 0 / 0.4986 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.4522, allocations: 0 / 0.4986 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.4523, allocations: 7.984 kB / 0.4986 GB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002169/0.4525, allocations: 150.2 kB / 0.4987 GB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.4525, allocations: 3.938 kB / 0.4987 GB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.4526, allocations: 8 kB / 0.4987 GB, free: 0.5742 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-05/0.4527, allocations: 4.062 kB / 0.4987 GB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.4527, allocations: 4 kB / 0.4987 GB, free: 0.5664 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.4527, allocations: 3.984 kB / 0.4988 GB, free: 0.5625 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.4527, allocations: 3.984 kB / 0.4988 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002423/0.453, allocations: 192.5 kB / 0.4989 GB, free: 344 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.469e-05/0.4531, allocations: 93 kB / 0.499 GB, free: 232 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.4531, allocations: 4 kB / 0.499 GB, free: 228 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.4532, allocations: 0 / 0.499 GB, free: 228 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.327e-05/0.4533, allocations: 7.984 kB / 0.499 GB, free: 220 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.286e-06/0.4533, allocations: 0 / 0.499 GB, free: 220 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001072/0.4534, allocations: 104 kB / 0.4991 GB, free: 116 kB / 346.7 MB Notification: Performance of sort global known variables: time 4.188e-06/0.4534, allocations: 0 / 0.4991 GB, free: 116 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003134/0.4538, allocations: 15.89 kB / 0.4992 GB, free: 100 kB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 0.0001498/0.4539, allocations: 95.25 kB / 0.4992 GB, free: 16 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001253/0.4541, allocations: 23.94 kB / 0.4993 GB, free: 15.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.4541, allocations: 0 / 0.4993 GB, free: 15.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.395e-05/0.4541, allocations: 4 kB / 0.4993 GB, free: 15.97 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003768/0.4545, allocations: 23.39 kB / 0.4993 GB, free: 15.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004015/0.4549, allocations: 131.9 kB / 0.4994 GB, free: 15.78 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003706/0.4553, allocations: 0.7041 MB / 0.5001 GB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.885e-05/0.4554, allocations: 15.44 kB / 0.5001 GB, free: 15.04 MB / 362.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4554, allocations: 0 / 0.5001 GB, free: 15.04 MB / 362.7 MB Notification: Performance of Templates: time 0.0032/0.4586, allocations: 0.8038 MB / 0.5009 GB, free: 14.23 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches