Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001443/0.001442, allocations: 181 kB / 8.049 MB, free: 1.027 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.128/2.128, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.001052/0.001052, allocations: 90.31 kB / 261.8 MB, free: 13.46 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.1125/0.1125, allocations: 12.59 MB / 322.3 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.484e-05/2.495e-05, allocations: 0 / 378.9 MB, free: 75.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1114, allocations: 50.37 MB / 429.3 MB, free: 24.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4772/0.5886, allocations: 81.09 MB / 0.4984 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003393/0.5891, allocations: 84.94 kB / 0.4985 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02422/0.6133, allocations: 5.755 MB / 0.5041 GB, free: 10.87 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.063e-06/0.6134, allocations: 0 / 0.5041 GB, free: 10.87 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.185e-05/0.6134, allocations: 4 kB / 0.5041 GB, free: 10.86 MB / 330.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.000685/0.6141, allocations: 470.1 kB / 0.5046 GB, free: 10.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.6142, allocations: 11.47 kB / 0.5046 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.258e-05/0.6143, allocations: 27.09 kB / 0.5046 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005003/0.6148, allocations: 258.1 kB / 0.5049 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.352e-05/0.6148, allocations: 3.953 kB / 0.5049 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.348e-05/0.6148, allocations: 3.812 kB / 0.5049 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000145/0.615, allocations: 44.48 kB / 0.5049 GB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003011/0.6153, allocations: 134.9 kB / 0.505 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.6153, allocations: 3.938 kB / 0.505 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.6154, allocations: 0 / 0.505 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.6154, allocations: 3.75 kB / 0.505 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005636/0.6159, allocations: 339.1 kB / 0.5054 GB, free: 9.754 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001778/0.6161, allocations: 99.59 kB / 0.5055 GB, free: 9.676 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.6163, allocations: 36.95 kB / 0.5055 GB, free: 9.652 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.113e-05/0.6163, allocations: 4 kB / 0.5055 GB, free: 9.648 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001541/0.6165, allocations: 77.27 kB / 0.5056 GB, free: 9.586 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 3.636e-06/0.6165, allocations: 0 / 0.5056 GB, free: 9.586 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003263/0.6168, allocations: 106 kB / 0.5057 GB, free: 9.535 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.664e-05/0.6169, allocations: 139.4 kB / 0.5058 GB, free: 9.375 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000306/0.6172, allocations: 228.2 kB / 0.506 GB, free: 9.262 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.6173, allocations: 25.7 kB / 0.5061 GB, free: 9.23 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.483e-05/0.6173, allocations: 125.6 kB / 0.5062 GB, free: 9.137 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.696e-05/0.6174, allocations: 11.16 kB / 0.5062 GB, free: 9.133 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.154e-06/0.6174, allocations: 0 / 0.5062 GB, free: 9.133 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.905e-05/0.6175, allocations: 325.3 kB / 0.5065 GB, free: 8.816 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.22e-05/0.6176, allocations: 22.73 kB / 0.5065 GB, free: 8.812 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.825e-05/0.6176, allocations: 63.08 kB / 0.5066 GB, free: 8.754 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.165e-05/0.6177, allocations: 33.81 kB / 0.5066 GB, free: 8.738 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.6177, allocations: 0 / 0.5066 GB, free: 8.738 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002146/0.618, allocations: 106.2 kB / 0.5067 GB, free: 8.684 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.618, allocations: 11.78 kB / 0.5067 GB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.618, allocations: 3.844 kB / 0.5067 GB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.618, allocations: 0 / 0.5067 GB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.6182, allocations: 15.41 kB / 0.5067 GB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.6182, allocations: 3.938 kB / 0.5067 GB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.6183, allocations: 15.52 kB / 0.5068 GB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.6184, allocations: 3.969 kB / 0.5068 GB, free: 8.664 MB / 330.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,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete 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 8.2e-05/0.6185, allocations: 114.8 kB / 0.5069 GB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.383e-05/0.6186, allocations: 63.47 kB / 0.5069 GB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002527/0.6188, allocations: 104.6 kB / 0.507 GB, free: 8.453 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.6188, allocations: 0 / 0.507 GB, free: 8.453 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.6189, allocations: 3.688 kB / 0.507 GB, free: 8.453 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.6189, allocations: 3.984 kB / 0.507 GB, free: 8.449 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.6191, allocations: 197.2 kB / 0.5072 GB, free: 8.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.6191, allocations: 3.875 kB / 0.5072 GB, free: 8.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.511e-05/0.6191, allocations: 10.48 kB / 0.5072 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.6192, allocations: 3.953 kB / 0.5072 GB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.6192, allocations: 7.906 kB / 0.5073 GB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.6192, allocations: 7.875 kB / 0.5073 GB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.6192, allocations: 0 / 0.5073 GB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000246/0.6195, allocations: 178.9 kB / 0.5074 GB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.6196, allocations: 117.7 kB / 0.5075 GB, free: 7.996 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.26e-05/0.6197, allocations: 3.125 kB / 0.5075 GB, free: 7.996 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.6198, allocations: 7.641 kB / 0.5076 GB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.042e-05/0.6198, allocations: 3.812 kB / 0.5076 GB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.6199, allocations: 3.719 kB / 0.5076 GB, free: 7.992 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002121/0.6201, allocations: 185.1 kB / 0.5077 GB, free: 7.898 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-07/0.6201, allocations: 0 / 0.5077 GB, free: 7.898 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003979/0.6205, allocations: 37.95 kB / 0.5078 GB, free: 7.887 MB / 330.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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.0009801/0.6215, allocations: 353.8 kB / 0.5081 GB, free: 7.609 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002674/0.6218, allocations: 63.27 kB / 0.5082 GB, free: 7.602 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.6218, allocations: 0 / 0.5082 GB, free: 7.602 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.117e-05/0.6219, allocations: 26.72 kB / 0.5082 GB, free: 7.598 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005189/0.6224, allocations: 55.48 kB / 0.5082 GB, free: 7.578 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005688/0.623, allocations: 226.5 kB / 0.5085 GB, free: 7.434 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.6232, allocations: 0.7455 MB / 0.5092 GB, free: 6.703 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001232/0.6234, allocations: 25.17 kB / 0.5092 GB, free: 6.691 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.481e-05/0.6234, allocations: 22.95 kB / 0.5092 GB, free: 6.68 MB / 330.7 MB Notification: Performance of SimCode: time 7.81e-07/0.6235, allocations: 0 / 0.5092 GB, free: 6.68 MB / 330.7 MB Notification: Performance of Templates: time 0.007739/0.6312, allocations: 2.234 MB / 0.5114 GB, free: 5.555 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches