Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001507/0.001507, allocations: 176.7 kB / 8.051 MB, free: 1.023 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.251/2.251, allocations: 205.3 MB / 213.8 MB, free: 13.69 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.001164/0.001163, allocations: 99.91 kB / 261.8 MB, free: 13.43 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.1088/0.1088, allocations: 12.58 MB / 322.3 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.044e-05/2.059e-05, allocations: 0 / 378.9 MB, free: 75.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1035, allocations: 50.38 MB / 429.3 MB, free: 24.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4661/0.5696, allocations: 81.09 MB / 0.4984 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.5699, allocations: 82.03 kB / 0.4985 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0262/0.5962, allocations: 6.267 MB / 0.5046 GB, free: 10.72 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.5962, allocations: 0 / 0.5046 GB, free: 10.72 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.911e-05/0.5962, allocations: 11.97 kB / 0.5047 GB, free: 10.71 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.0006349/0.5969, allocations: 467.9 kB / 0.5051 GB, free: 10.26 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.597, allocations: 11.62 kB / 0.5051 GB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.179e-05/0.597, allocations: 19.47 kB / 0.5051 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004858/0.5975, allocations: 264.8 kB / 0.5054 GB, free: 10.01 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.5976, allocations: 7.953 kB / 0.5054 GB, free: 10 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.247e-05/0.5976, allocations: 3.812 kB / 0.5054 GB, free: 10 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001392/0.5978, allocations: 37.27 kB / 0.5054 GB, free: 10 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002969/0.5981, allocations: 134.1 kB / 0.5056 GB, free: 9.902 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.5981, allocations: 0 / 0.5056 GB, free: 9.902 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/0.5981, allocations: 0 / 0.5056 GB, free: 9.902 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.5981, allocations: 0 / 0.5056 GB, free: 9.902 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000551/0.5987, allocations: 352.3 kB / 0.5059 GB, free: 9.605 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001797/0.5989, allocations: 104.6 kB / 0.506 GB, free: 9.52 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.731e-05/0.599, allocations: 37.48 kB / 0.506 GB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.599, allocations: 3.812 kB / 0.506 GB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001709/0.5992, allocations: 80.23 kB / 0.5061 GB, free: 9.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.795e-06/0.5992, allocations: 0 / 0.5061 GB, free: 9.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003463/0.5996, allocations: 104.2 kB / 0.5062 GB, free: 9.379 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.757e-05/0.5997, allocations: 139.7 kB / 0.5063 GB, free: 9.219 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003307/0.6, allocations: 225.5 kB / 0.5066 GB, free: 9.109 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.6, allocations: 25.7 kB / 0.5066 GB, free: 9.078 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.328e-05/0.6001, allocations: 123.8 kB / 0.5067 GB, free: 8.984 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.949e-05/0.6002, allocations: 19.56 kB / 0.5067 GB, free: 8.969 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.284e-06/0.6002, allocations: 0 / 0.5067 GB, free: 8.969 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.056e-05/0.6003, allocations: 333.3 kB / 0.507 GB, free: 8.648 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.5e-05/0.6004, allocations: 21.42 kB / 0.5071 GB, free: 8.645 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.44e-05/0.6005, allocations: 58.92 kB / 0.5071 GB, free: 8.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.63e-05/0.6005, allocations: 33.91 kB / 0.5071 GB, free: 8.574 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.6006, allocations: 3.688 kB / 0.5071 GB, free: 8.574 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002187/0.6008, allocations: 101.6 kB / 0.5072 GB, free: 8.523 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.6008, allocations: 3.844 kB / 0.5072 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.6008, allocations: 0 / 0.5072 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.6009, allocations: 3.875 kB / 0.5072 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.601, allocations: 11.06 kB / 0.5073 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.601, allocations: 3.844 kB / 0.5073 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.6012, allocations: 19.8 kB / 0.5073 GB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.6012, allocations: 3.844 kB / 0.5073 GB, free: 8.508 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,subSample.y,subSample.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.923e-05/0.6013, allocations: 115 kB / 0.5074 GB, free: 8.395 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.6014, allocations: 60.69 kB / 0.5075 GB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002653/0.6017, allocations: 110.5 kB / 0.5076 GB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.6017, allocations: 0 / 0.5076 GB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.6017, allocations: 3.75 kB / 0.5076 GB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.6017, allocations: 8.047 kB / 0.5076 GB, free: 8.289 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002083/0.602, allocations: 197 kB / 0.5078 GB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.602, allocations: 0 / 0.5078 GB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.52e-05/0.602, allocations: 7.672 kB / 0.5078 GB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.6021, allocations: 7.609 kB / 0.5078 GB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.6021, allocations: 3.812 kB / 0.5078 GB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.6021, allocations: 0 / 0.5078 GB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.6021, allocations: 7.625 kB / 0.5078 GB, free: 8.098 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002624/0.6024, allocations: 170 kB / 0.5079 GB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.6025, allocations: 118.4 kB / 0.5081 GB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.56e-05/0.6026, allocations: 3.906 kB / 0.5081 GB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.6027, allocations: 15.77 kB / 0.5081 GB, free: 7.836 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.253e-05/0.6028, allocations: 3.906 kB / 0.5081 GB, free: 7.836 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.6028, allocations: 4 kB / 0.5081 GB, free: 7.832 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002141/0.603, allocations: 184.7 kB / 0.5083 GB, free: 7.738 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.603, allocations: 0 / 0.5083 GB, free: 7.738 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004108/0.6034, allocations: 38.67 kB / 0.5083 GB, free: 7.73 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,subSample.y,sample.y,subSample.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.0009998/0.6045, allocations: 355.5 kB / 0.5086 GB, free: 7.453 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002701/0.6047, allocations: 68.39 kB / 0.5087 GB, free: 7.441 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.6048, allocations: 0 / 0.5087 GB, free: 7.441 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.643e-05/0.6049, allocations: 32.56 kB / 0.5087 GB, free: 7.438 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005419/0.6054, allocations: 55.16 kB / 0.5088 GB, free: 7.418 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006029/0.606, allocations: 220.6 kB / 0.509 GB, free: 7.277 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002141/0.6063, allocations: 0.7384 MB / 0.5097 GB, free: 6.551 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001267/0.6064, allocations: 20.67 kB / 0.5097 GB, free: 6.543 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.596e-05/0.6065, allocations: 26.7 kB / 0.5098 GB, free: 6.531 MB / 330.7 MB Notification: Performance of SimCode: time 1.243e-06/0.6065, allocations: 0 / 0.5098 GB, free: 6.531 MB / 330.7 MB Notification: Performance of Templates: time 0.007781/0.6143, allocations: 2.192 MB / 0.5119 GB, free: 5.418 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches