Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000892/0.0008921, allocations: 173.2 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.268/1.268, allocations: 205.4 MB / 222.6 MB, free: 9.105 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.0007842/0.0007842, allocations: 99.78 kB / 270.9 MB, free: 8.344 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.0671/0.0671, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004023/0.0004024, allocations: 16 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08373/0.08415, allocations: 50.38 MB / 443 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002471/0.08667, allocations: 1.54 MB / 444.6 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002123/0.08883, allocations: 0.9915 MB / 445.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001593/0.08902, allocations: 7.938 kB / 445.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003544/0.0894, allocations: 55.8 kB / 445.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003151/0.08974, allocations: 75.72 kB / 445.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.09079, allocations: 195.6 kB / 445.9 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002507/0.09106, allocations: 147.5 kB / 446 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.09121, allocations: 33.53 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.09137, allocations: 63.69 kB / 446.1 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.09152, allocations: 67.69 kB / 446.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.988e-05/0.09158, allocations: 0 / 446.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001729/0.09178, allocations: 43.98 kB / 446.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.246e-05/0.09188, allocations: 47.83 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.622e-05/0.09195, allocations: 53.58 kB / 446.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002696/0.09224, allocations: 171.9 kB / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.09226, allocations: 0 / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.09227, allocations: 0 / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.09229, allocations: 7.938 kB / 446.5 MB, free: 12.28 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007529/0.09306, allocations: 499.9 kB / 447 MB, free: 11.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.09311, allocations: 12.03 kB / 447 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.463e-05/0.0932, allocations: 23.7 kB / 447 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.09362, allocations: 278.4 kB / 447.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.453e-05/0.09366, allocations: 4 kB / 447.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.748e-05/0.0937, allocations: 8 kB / 447.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000427/0.09414, allocations: 163.6 kB / 447.5 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.09417, allocations: 7.938 kB / 447.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.932e-05/0.0942, allocations: 0 / 447.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.09422, allocations: 0 / 447.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000172/0.0944, allocations: 39.97 kB / 447.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005943/0.09501, allocations: 386.3 kB / 447.9 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003485/0.09538, allocations: 115.9 kB / 448 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/0.09554, allocations: 46.56 kB / 448.1 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.584e-05/0.0956, allocations: 7.984 kB / 448.1 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/0.09585, allocations: 79.33 kB / 448.2 MB, free: 10.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.435e-06/0.09587, allocations: 0 / 448.2 MB, free: 10.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005505/0.09643, allocations: 149.3 kB / 448.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/0.09651, allocations: 162.2 kB / 448.5 MB, free: 10.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004368/0.09696, allocations: 322.7 kB / 448.8 MB, free: 9.742 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.097, allocations: 33.69 kB / 448.8 MB, free: 9.703 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.681e-05/0.0971, allocations: 136.3 kB / 448.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.821e-05/0.09714, allocations: 11.81 kB / 449 MB, free: 9.555 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.458e-06/0.09717, allocations: 4 kB / 449 MB, free: 9.551 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.074e-05/0.09725, allocations: 334.8 kB / 449.3 MB, free: 9.215 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.09738, allocations: 27.92 kB / 449.3 MB, free: 9.188 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.09754, allocations: 90.84 kB / 449.4 MB, free: 9.074 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001185/0.09768, allocations: 28 kB / 449.4 MB, free: 9.047 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.0977, allocations: 0 / 449.4 MB, free: 9.047 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003396/0.09805, allocations: 125.6 kB / 449.5 MB, free: 8.918 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.09808, allocations: 8 kB / 449.6 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.0981, allocations: 8.109 kB / 449.6 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.09813, allocations: 4 kB / 449.6 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.0983, allocations: 12 kB / 449.6 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.09833, allocations: 7.938 kB / 449.6 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.09848, allocations: 11.94 kB / 449.6 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/0.09851, allocations: 4 kB / 449.6 MB, free: 8.863 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001582/0.09868, allocations: 158.4 kB / 449.8 MB, free: 8.699 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.0988, allocations: 73.42 kB / 449.8 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.944e-05/0.09889, allocations: 29.69 kB / 449.9 MB, free: 8.594 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.09891, allocations: 4 kB / 449.9 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.09893, allocations: 0 / 449.9 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.09894, allocations: 0 / 449.9 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002151/0.09917, allocations: 241.4 kB / 450.1 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.09919, allocations: 0 / 450.1 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.0993, allocations: 15.98 kB / 450.1 MB, free: 8.289 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.09932, allocations: 0 / 450.1 MB, free: 8.289 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.09934, allocations: 0 / 450.1 MB, free: 8.289 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.09936, allocations: 4 kB / 450.1 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.09937, allocations: 4.031 kB / 450.1 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003716/0.09975, allocations: 162.5 kB / 450.3 MB, free: 8.098 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.09988, allocations: 120.8 kB / 450.4 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.585e-05/0.09994, allocations: 4 kB / 450.4 MB, free: 7.957 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.1001, allocations: 4 kB / 450.4 MB, free: 7.953 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.459e-05/0.1001, allocations: 11.98 kB / 450.4 MB, free: 7.941 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.1002, allocations: 11.94 kB / 450.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003098/0.1005, allocations: 237.9 kB / 450.7 MB, free: 7.695 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.1005, allocations: 0 / 450.7 MB, free: 7.695 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004496/0.101, allocations: 32 kB / 450.7 MB, free: 7.664 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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00132/0.1023, allocations: 427.5 kB / 451.1 MB, free: 7.238 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003297/0.1027, allocations: 71.97 kB / 451.2 MB, free: 7.168 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1027, allocations: 0 / 451.2 MB, free: 7.168 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.1028, allocations: 31.92 kB / 451.2 MB, free: 7.137 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006213/0.1035, allocations: 56.5 kB / 451.3 MB, free: 7.082 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008087/0.1043, allocations: 422.3 kB / 451.7 MB, free: 6.637 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/0.1045, allocations: 0.7439 MB / 452.4 MB, free: 5.867 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.775e-05/0.1046, allocations: 19.44 kB / 452.4 MB, free: 5.852 MB / 298.7 MB Notification: Performance of SimCode: time 2.755e-06/0.1046, allocations: 0 / 452.4 MB, free: 5.852 MB / 298.7 MB Notification: Performance of Templates: time 0.007075/0.1117, allocations: 2.898 MB / 455.3 MB, free: 2.949 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches