Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001188/0.001187, allocations: 164.2 kB / 16.8 MB, free: 5.023 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.552/1.552, allocations: 205.4 MB / 223 MB, free: 8.938 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.000809/0.000809, allocations: 86.41 kB / 271.3 MB, free: 8.238 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.08423/0.08423, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004689/0.0004689, allocations: 15.98 kB / 393.2 MB, free: 65.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08704/0.08752, allocations: 50.37 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.31/0.3976, allocations: 81.92 MB / 0.5132 GB, free: 12.56 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.3979, allocations: 88.58 kB / 0.5133 GB, free: 12.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01513/0.413, allocations: 6.475 MB / 0.5196 GB, free: 8.531 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.215e-06/0.4131, allocations: 0 / 0.5196 GB, free: 8.531 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.982e-05/0.4131, allocations: 4 kB / 0.5196 GB, free: 8.527 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.0006076/0.4137, allocations: 0.5303 MB / 0.5201 GB, free: 7.953 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.4138, allocations: 12.03 kB / 0.5201 GB, free: 7.941 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.114e-05/0.4138, allocations: 20.66 kB / 0.5202 GB, free: 7.922 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003579/0.4142, allocations: 306.2 kB / 0.5205 GB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.4142, allocations: 7.25 kB / 0.5205 GB, free: 7.605 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.645e-05/0.4143, allocations: 4.375 kB / 0.5205 GB, free: 7.602 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002794/0.4145, allocations: 158.8 kB / 0.5206 GB, free: 7.445 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.4146, allocations: 4.188 kB / 0.5206 GB, free: 7.441 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.4146, allocations: 3.938 kB / 0.5206 GB, free: 7.438 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.4146, allocations: 7.984 kB / 0.5206 GB, free: 7.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.669e-05/0.4147, allocations: 33.98 kB / 0.5207 GB, free: 7.406 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004257/0.4151, allocations: 399.1 kB / 0.521 GB, free: 7.012 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001924/0.4153, allocations: 129.4 kB / 0.5212 GB, free: 6.879 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.195e-05/0.4154, allocations: 43.88 kB / 0.5212 GB, free: 6.836 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.4154, allocations: 11.94 kB / 0.5212 GB, free: 6.824 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001408/0.4156, allocations: 80.31 kB / 0.5213 GB, free: 6.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.623e-06/0.4156, allocations: 0 / 0.5213 GB, free: 6.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003351/0.4159, allocations: 156.4 kB / 0.5214 GB, free: 6.621 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/0.416, allocations: 166.4 kB / 0.5216 GB, free: 6.422 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002801/0.4163, allocations: 328.3 kB / 0.5219 GB, free: 6.148 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.4163, allocations: 29.39 kB / 0.5219 GB, free: 6.117 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.399e-05/0.4164, allocations: 129.8 kB / 0.5221 GB, free: 6.016 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.4164, allocations: 19.73 kB / 0.5221 GB, free: 5.996 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-06/0.4164, allocations: 3.562 kB / 0.5221 GB, free: 5.996 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.331e-05/0.4165, allocations: 333.3 kB / 0.5224 GB, free: 5.668 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.103e-05/0.4165, allocations: 23.11 kB / 0.5224 GB, free: 5.652 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.702e-05/0.4166, allocations: 97.77 kB / 0.5225 GB, free: 5.547 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001245/0.4168, allocations: 92.59 kB / 0.5226 GB, free: 5.461 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.4168, allocations: 0 / 0.5226 GB, free: 5.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001873/0.417, allocations: 128.6 kB / 0.5227 GB, free: 5.352 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.417, allocations: 7.984 kB / 0.5227 GB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.417, allocations: 0 / 0.5227 GB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.417, allocations: 4 kB / 0.5228 GB, free: 5.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.344e-05/0.4171, allocations: 15.94 kB / 0.5228 GB, free: 5.324 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.4171, allocations: 4 kB / 0.5228 GB, free: 5.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.967e-05/0.4172, allocations: 15.48 kB / 0.5228 GB, free: 5.309 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.4172, allocations: 4 kB / 0.5228 GB, free: 5.305 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 () * 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.0001033/0.4173, allocations: 155.2 kB / 0.5229 GB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.644e-05/0.4174, allocations: 72.22 kB / 0.523 GB, free: 5.086 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002256/0.4176, allocations: 125.1 kB / 0.5231 GB, free: 4.98 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.4177, allocations: 0 / 0.5231 GB, free: 4.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4177, allocations: 4 kB / 0.5231 GB, free: 4.977 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.4177, allocations: 4.062 kB / 0.5231 GB, free: 4.973 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.4178, allocations: 253.8 kB / 0.5234 GB, free: 4.711 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.4178, allocations: 4 kB / 0.5234 GB, free: 4.707 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.981e-05/0.4179, allocations: 15.92 kB / 0.5234 GB, free: 4.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.4179, allocations: 0 / 0.5234 GB, free: 4.691 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.4179, allocations: 4 kB / 0.5234 GB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.4179, allocations: 0 / 0.5234 GB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4179, allocations: 4 kB / 0.5234 GB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002121/0.4182, allocations: 179.8 kB / 0.5236 GB, free: 4.508 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.908e-05/0.4183, allocations: 127.7 kB / 0.5237 GB, free: 4.375 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.95e-05/0.4183, allocations: 4.062 kB / 0.5237 GB, free: 4.371 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.209e-05/0.4184, allocations: 11.88 kB / 0.5237 GB, free: 4.363 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.04e-05/0.4184, allocations: 7.984 kB / 0.5237 GB, free: 4.355 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.948e-06/0.4184, allocations: 4 kB / 0.5237 GB, free: 4.352 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001884/0.4186, allocations: 242.4 kB / 0.524 GB, free: 4.16 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4186, allocations: 4 kB / 0.524 GB, free: 4.156 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002653/0.4189, allocations: 47.56 kB / 0.524 GB, free: 4.113 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) * Number of clocked states: 0 () * 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.0008807/0.4198, allocations: 447.4 kB / 0.5244 GB, free: 3.684 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000238/0.42, allocations: 86.38 kB / 0.5245 GB, free: 3.617 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.4201, allocations: 0 / 0.5245 GB, free: 3.617 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.731e-05/0.4201, allocations: 34.23 kB / 0.5245 GB, free: 3.594 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003906/0.4205, allocations: 71.23 kB / 0.5246 GB, free: 3.535 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005146/0.4211, allocations: 400.9 kB / 0.525 GB, free: 3.145 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001606/0.4212, allocations: 0.7428 MB / 0.5257 GB, free: 2.383 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.963e-05/0.4213, allocations: 25.55 kB / 0.5257 GB, free: 2.359 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.52e-05/0.4214, allocations: 27.36 kB / 0.5258 GB, free: 2.332 MB / 330.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4214, allocations: 0 / 0.5258 GB, free: 2.332 MB / 330.7 MB Notification: Performance of Templates: time 0.00518/0.4266, allocations: 2.773 MB / 0.5285 GB, free: 15.57 MB / 346.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches