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.0009309/0.0009309, allocations: 175.3 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.527/1.527, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.0008047/0.0008046, allocations: 96.73 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.07421/0.07421, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004291/0.0004292, allocations: 16 kB / 392 MB, free: 66.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08566/0.0861, allocations: 50.37 MB / 442.4 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample): time 0.001422/0.08758, allocations: 1.266 MB / 443.6 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006541/0.08825, allocations: 0.5117 MB / 444.2 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.535e-05/0.08834, allocations: 0 / 444.2 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.952e-05/0.08838, allocations: 3.938 kB / 444.2 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001171/0.08851, allocations: 15.91 kB / 444.2 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002329/0.08875, allocations: 39.91 kB / 444.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.902e-05/0.08883, allocations: 39.86 kB / 444.2 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.265e-05/0.08893, allocations: 16.17 kB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.795e-05/0.089, allocations: 23.86 kB / 444.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.168e-05/0.08906, allocations: 15.92 kB / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.609e-05/0.08908, allocations: 4 kB / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.213e-05/0.0891, allocations: 3.938 kB / 444.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.854e-05/0.08913, allocations: 11.92 kB / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.016e-05/0.08916, allocations: 37.64 kB / 444.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.364e-05/0.08923, allocations: 35.94 kB / 444.4 MB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.08924, allocations: 0 / 444.4 MB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.08924, allocations: 4 kB / 444.4 MB, free: 14.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.146e-06/0.08925, allocations: 3.938 kB / 444.4 MB, free: 14.39 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.000356/0.08961, allocations: 371.3 kB / 444.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.08965, allocations: 8.031 kB / 444.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.943e-05/0.08969, allocations: 7.906 kB / 444.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001438/0.08984, allocations: 194.9 kB / 445 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.08985, allocations: 0 / 445 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.265e-05/0.08987, allocations: 7.938 kB / 445 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002204/0.0901, allocations: 117.9 kB / 445.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.09012, allocations: 3.938 kB / 445.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.185e-06/0.09013, allocations: 0 / 445.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.09014, allocations: 0 / 445.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.168e-05/0.09023, allocations: 31.98 kB / 445.1 MB, free: 13.56 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000231/0.09047, allocations: 278.4 kB / 445.4 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.73e-05/0.09056, allocations: 75.78 kB / 445.5 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.534e-05/0.09063, allocations: 34.62 kB / 445.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.09066, allocations: 3.984 kB / 445.5 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.309e-05/0.09068, allocations: 38.56 kB / 445.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.09068, allocations: 0 / 445.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002236/0.09091, allocations: 85.55 kB / 445.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.09095, allocations: 111.2 kB / 445.7 MB, free: 12.81 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.304e-05/0.09104, allocations: 149.5 kB / 445.9 MB, free: 12.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.604e-06/0.09106, allocations: 25.7 kB / 445.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.843e-05/0.09109, allocations: 96.05 kB / 446 MB, free: 12.53 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.107e-05/0.09111, allocations: 3.984 kB / 446 MB, free: 12.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-06/0.09112, allocations: 0 / 446 MB, free: 12.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.16e-05/0.09117, allocations: 314.8 kB / 446.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.134e-05/0.09121, allocations: 11.98 kB / 446.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.254e-05/0.09126, allocations: 43.42 kB / 446.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.263e-05/0.09131, allocations: 8 kB / 446.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.09132, allocations: 3.938 kB / 446.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000116/0.09144, allocations: 81.52 kB / 446.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.09146, allocations: 4 kB / 446.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.09147, allocations: 0 / 446.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.09149, allocations: 4 kB / 446.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.873e-05/0.09156, allocations: 8 kB / 446.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.09157, allocations: 0 / 446.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.37e-05/0.09162, allocations: 11.94 kB / 446.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.615e-06/0.09163, allocations: 8.125 kB / 446.5 MB, free: 12.01 MB / 298.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 () * Number of clocked 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 5.515e-05/0.09169, allocations: 122.4 kB / 446.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.002e-05/0.09176, allocations: 49.59 kB / 446.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.506e-05/0.09179, allocations: 15.83 kB / 446.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.0918, allocations: 4 kB / 446.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.09181, allocations: 11.88 kB / 446.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.09182, allocations: 0 / 446.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001254/0.09195, allocations: 181.6 kB / 446.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.09195, allocations: 64 / 446.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.647e-05/0.09202, allocations: 15.94 kB / 446.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.09203, allocations: 0 / 446.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.567e-06/0.09205, allocations: 7.984 kB / 446.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.09205, allocations: 0 / 446.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.09206, allocations: 0 / 446.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001371/0.0922, allocations: 185.1 kB / 447.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.588e-05/0.09225, allocations: 93 kB / 447.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/0.09227, allocations: 4 kB / 447.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.653e-05/0.09234, allocations: 4 kB / 447.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.726e-05/0.09237, allocations: 0 / 447.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.09238, allocations: 0 / 447.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.542e-05/0.09243, allocations: 115.2 kB / 447.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09244, allocations: 4 kB / 447.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002009/0.09264, allocations: 7.953 kB / 447.3 MB, free: 11.1 MB / 298.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 () * Number of clocked 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 6.703e-05/0.09271, allocations: 95.25 kB / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001237/0.09285, allocations: 39.91 kB / 447.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.09286, allocations: 0 / 447.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.492e-05/0.0929, allocations: 12.25 kB / 447.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.09322, allocations: 28.02 kB / 447.5 MB, free: 10.92 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002769/0.09351, allocations: 228.5 kB / 447.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001124/0.09363, allocations: 0.6887 MB / 448.4 MB, free: 9.941 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.404e-05/0.09366, allocations: 11.44 kB / 448.4 MB, free: 9.93 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.09367, allocations: 3.938 kB / 448.4 MB, free: 9.926 MB / 298.7 MB Notification: Performance of Templates: time 0.001656/0.09533, allocations: 0.8375 MB / 449.2 MB, free: 9.094 MB / 298.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/jenkins/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