Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000948/0.0009479, allocations: 177 kB / 16.12 MB, free: 5.691 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.218/1.218, allocations: 205 MB / 221.9 MB, free: 9.074 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.00084/0.00084, allocations: 89.69 kB / 269.9 MB, free: 8.66 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.0644/0.0644, allocations: 12.57 MB / 330.3 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003286/0.0003287, allocations: 11.98 kB / 391.2 MB, free: 66.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06956/0.0699, allocations: 49.98 MB / 441.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.001706/0.07166, allocations: 1.617 MB / 442.8 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.07287, allocations: 1.076 MB / 443.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.98e-05/0.07298, allocations: 4 kB / 443.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002628/0.07325, allocations: 71.73 kB / 443.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001595/0.07342, allocations: 79.72 kB / 444 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005037/0.07394, allocations: 207.6 kB / 444.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001442/0.07409, allocations: 167.5 kB / 444.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.008e-05/0.07419, allocations: 25.84 kB / 444.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.507e-05/0.07427, allocations: 79.56 kB / 444.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.024e-05/0.07435, allocations: 71.62 kB / 444.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.976e-05/0.07438, allocations: 4 kB / 444.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.07449, allocations: 55.95 kB / 444.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.546e-05/0.07456, allocations: 43.84 kB / 444.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.613e-05/0.07463, allocations: 79.41 kB / 444.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001918/0.07482, allocations: 231.1 kB / 444.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.07484, allocations: 4 kB / 444.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.07484, allocations: 0 / 444.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.938e-06/0.07485, allocations: 0 / 444.9 MB, free: 12.48 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004974/0.07536, allocations: 0.5 MB / 445.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.07539, allocations: 12.03 kB / 445.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.322e-05/0.07543, allocations: 38.73 kB / 445.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.479e-05/0.07548, allocations: 24.66 kB / 445.5 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002347/0.07572, allocations: 299.4 kB / 445.8 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.07575, allocations: 8.375 kB / 445.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.511e-05/0.07577, allocations: 11.94 kB / 445.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002821/0.07606, allocations: 184.4 kB / 446 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.106e-06/0.07608, allocations: 4 kB / 446 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.07609, allocations: 0 / 446 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.0761, allocations: 0 / 446 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.826e-05/0.07621, allocations: 47.91 kB / 446 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003663/0.07658, allocations: 395.2 kB / 446.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002029/0.0768, allocations: 138.5 kB / 446.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.103e-05/0.07689, allocations: 63.36 kB / 446.6 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.07692, allocations: 7.984 kB / 446.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001706/0.0771, allocations: 71.39 kB / 446.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.533e-06/0.07711, allocations: 0 / 446.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003341/0.07745, allocations: 173.2 kB / 446.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.748e-05/0.07751, allocations: 191.8 kB / 447.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000306/0.07783, allocations: 338.6 kB / 447.4 MB, free: 9.699 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.07785, allocations: 25.7 kB / 447.4 MB, free: 9.668 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.598e-05/0.07793, allocations: 132.8 kB / 447.6 MB, free: 9.535 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.07795, allocations: 19.75 kB / 447.6 MB, free: 9.516 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.799e-05/0.07799, allocations: 25.7 kB / 447.6 MB, free: 9.484 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.345e-05/0.07807, allocations: 326.8 kB / 447.9 MB, free: 9.156 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.429e-05/0.07814, allocations: 23.98 kB / 447.9 MB, free: 9.133 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.947e-05/0.07823, allocations: 104.5 kB / 448 MB, free: 9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.07838, allocations: 110.1 kB / 448.1 MB, free: 8.871 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.07839, allocations: 8 kB / 448.2 MB, free: 8.863 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001951/0.07859, allocations: 137.2 kB / 448.3 MB, free: 8.723 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.07861, allocations: 4 kB / 448.3 MB, free: 8.719 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.07862, allocations: 4 kB / 448.3 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.07864, allocations: 0 / 448.3 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.07875, allocations: 27.92 kB / 448.3 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.07877, allocations: 0 / 448.3 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.366e-05/0.07884, allocations: 16.03 kB / 448.3 MB, free: 8.672 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.889e-06/0.07886, allocations: 12 kB / 448.4 MB, free: 8.66 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.07897, allocations: 154.6 kB / 448.5 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.718e-05/0.07905, allocations: 77.44 kB / 448.6 MB, free: 8.418 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.681e-05/0.07911, allocations: 25.7 kB / 448.6 MB, free: 8.395 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.07912, allocations: 4 kB / 448.6 MB, free: 8.391 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.07912, allocations: 0 / 448.6 MB, free: 8.391 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.07914, allocations: 7.938 kB / 448.6 MB, free: 8.383 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001419/0.07928, allocations: 257.6 kB / 448.9 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.07929, allocations: 3.938 kB / 448.9 MB, free: 8.078 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.16e-05/0.07936, allocations: 12 kB / 448.9 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.07937, allocations: 4 kB / 448.9 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.07939, allocations: 3.984 kB / 448.9 MB, free: 8.059 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.07939, allocations: 4 kB / 448.9 MB, free: 8.055 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.0794, allocations: 0 / 448.9 MB, free: 8.055 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002138/0.07962, allocations: 191.1 kB / 449.1 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.563e-05/0.07969, allocations: 120.8 kB / 449.2 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.806e-05/0.07973, allocations: 64 / 449.2 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.317e-05/0.0798, allocations: 12 kB / 449.2 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.296e-05/0.07985, allocations: 11.92 kB / 449.2 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.07987, allocations: 4 kB / 449.2 MB, free: 7.676 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001561/0.08003, allocations: 249.9 kB / 449.5 MB, free: 7.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08003, allocations: 4 kB / 449.5 MB, free: 7.426 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002287/0.08027, allocations: 32 kB / 449.5 MB, free: 7.395 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009893/0.08126, allocations: 1.028 MB / 450.5 MB, free: 6.328 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001862/0.08146, allocations: 83.89 kB / 450.6 MB, free: 6.246 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.08147, allocations: 7.938 kB / 450.6 MB, free: 6.238 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.727e-05/0.08154, allocations: 27.98 kB / 450.6 MB, free: 6.211 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000409/0.08196, allocations: 73.39 kB / 450.7 MB, free: 6.137 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001843/0.08381, allocations: 2.334 MB / 453.1 MB, free: 3.676 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001434/0.08397, allocations: 0.7437 MB / 453.8 MB, free: 2.906 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.367e-05/0.08405, allocations: 29.53 kB / 453.8 MB, free: 2.879 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.376e-05/0.08413, allocations: 63.41 kB / 453.9 MB, free: 2.816 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.08414, allocations: 0 / 453.9 MB, free: 2.816 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.261/0.3452, allocations: 5.055 MB / 458.9 MB, free: 13.75 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003968/0.3456, allocations: 267.8 kB / 459.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.079/2.425, allocations: 0 / 459.2 MB, free: 13.39 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches