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: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample",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.001479/0.001485, allocations: 180.9 kB / 16.12 MB, free: 5.566 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.255/1.255, allocations: 205 MB / 221.9 MB, free: 9.141 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.0006666/0.0006666, allocations: 105.8 kB / 269.9 MB, free: 8.672 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.06789/0.06789, allocations: 12.57 MB / 330.4 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003292/0.0003292, allocations: 19.98 kB / 391.2 MB, free: 66.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07051/0.07085, allocations: 49.98 MB / 441.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.001734/0.07263, allocations: 1.586 MB / 442.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.0739, allocations: 1.053 MB / 443.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.07402, allocations: 4 kB / 443.8 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000254/0.07428, allocations: 59.8 kB / 443.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001698/0.07446, allocations: 83.72 kB / 443.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005142/0.07499, allocations: 211.6 kB / 444.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001618/0.07516, allocations: 155.6 kB / 444.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.591e-05/0.07525, allocations: 29.55 kB / 444.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.867e-05/0.07534, allocations: 67.64 kB / 444.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.819e-05/0.07542, allocations: 67.69 kB / 444.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.986e-05/0.07545, allocations: 4 kB / 444.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.07556, allocations: 55.91 kB / 444.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.953e-05/0.07563, allocations: 43.83 kB / 444.5 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.679e-05/0.07569, allocations: 71.42 kB / 444.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001918/0.07589, allocations: 219.5 kB / 444.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.0759, allocations: 0 / 444.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.07591, allocations: 4 kB / 444.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.07592, allocations: 0 / 444.8 MB, free: 12.58 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.0004696/0.0764, allocations: 0.5001 MB / 445.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.07644, allocations: 12.02 kB / 445.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.083e-05/0.07648, allocations: 38.75 kB / 445.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.384e-05/0.07653, allocations: 20.66 kB / 445.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.07676, allocations: 287.6 kB / 445.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.07678, allocations: 12.31 kB / 445.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.392e-05/0.0768, allocations: 7.938 kB / 445.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002433/0.07705, allocations: 151.6 kB / 445.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.07707, allocations: 4 kB / 445.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.07709, allocations: 4 kB / 445.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.808e-06/0.0771, allocations: 0 / 445.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.363e-05/0.07719, allocations: 35.92 kB / 445.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003487/0.07755, allocations: 382.3 kB / 446.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001808/0.07774, allocations: 123.8 kB / 446.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.736e-05/0.07782, allocations: 46.56 kB / 446.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.07785, allocations: 7.938 kB / 446.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001531/0.07801, allocations: 75.38 kB / 446.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.07802, allocations: 0 / 446.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.000291/0.07832, allocations: 161.3 kB / 446.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.07837, allocations: 166.4 kB / 446.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002162/0.07859, allocations: 330.5 kB / 447.2 MB, free: 9.965 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.07861, allocations: 29.7 kB / 447.2 MB, free: 9.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.908e-05/0.07866, allocations: 124.2 kB / 447.3 MB, free: 9.805 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.865e-05/0.07869, allocations: 23.78 kB / 447.3 MB, free: 9.781 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.351e-05/0.07872, allocations: 17.72 kB / 447.3 MB, free: 9.758 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.352e-05/0.07877, allocations: 334.8 kB / 447.7 MB, free: 9.422 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.61e-05/0.07883, allocations: 23.98 kB / 447.7 MB, free: 9.398 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.406e-05/0.07891, allocations: 86.84 kB / 447.8 MB, free: 9.289 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001132/0.07903, allocations: 84.22 kB / 447.9 MB, free: 9.191 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.07904, allocations: 0 / 447.9 MB, free: 9.191 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001911/0.07923, allocations: 125.3 kB / 448 MB, free: 9.062 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.07925, allocations: 4 kB / 448 MB, free: 9.059 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.07926, allocations: 4 kB / 448 MB, free: 9.055 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.07928, allocations: 0 / 448 MB, free: 9.055 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.749e-05/0.07937, allocations: 23.92 kB / 448 MB, free: 9.031 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.07939, allocations: 0 / 448 MB, free: 9.031 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.753e-05/0.07946, allocations: 23.91 kB / 448 MB, free: 9.008 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-06/0.07947, allocations: 4 kB / 448 MB, free: 9.004 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.509e-05/0.07956, allocations: 149.8 kB / 448.2 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.129e-05/0.07963, allocations: 73.3 kB / 448.3 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.034e-05/0.07968, allocations: 25.7 kB / 448.3 MB, free: 8.746 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.07969, allocations: 0 / 448.3 MB, free: 8.746 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.07969, allocations: 0 / 448.3 MB, free: 8.746 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.0797, allocations: 7.938 kB / 448.3 MB, free: 8.738 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001188/0.07983, allocations: 233.6 kB / 448.5 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.07984, allocations: 7.984 kB / 448.5 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.274e-05/0.07989, allocations: 8 kB / 448.5 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.0799, allocations: 0 / 448.5 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.07992, allocations: 8 kB / 448.6 MB, free: 8.438 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.07993, allocations: 320 / 448.6 MB, free: 8.438 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.07993, allocations: 0 / 448.6 MB, free: 8.438 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001889/0.08012, allocations: 174.4 kB / 448.7 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.866e-05/0.08019, allocations: 108.9 kB / 448.8 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.854e-05/0.08023, allocations: 8 kB / 448.8 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.775e-05/0.08029, allocations: 4.031 kB / 448.8 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.971e-05/0.08034, allocations: 19.86 kB / 448.9 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.08035, allocations: 7.984 kB / 448.9 MB, free: 8.078 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001495/0.08051, allocations: 237.9 kB / 449.1 MB, free: 7.844 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.08052, allocations: 0 / 449.1 MB, free: 7.844 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002203/0.08074, allocations: 39.94 kB / 449.1 MB, free: 7.805 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 (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.0009759/0.08172, allocations: 1.016 MB / 450.2 MB, free: 6.754 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001638/0.0819, allocations: 75.91 kB / 450.2 MB, free: 6.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.08191, allocations: 0 / 450.2 MB, free: 6.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.505e-05/0.08198, allocations: 35.92 kB / 450.3 MB, free: 6.645 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003364/0.08232, allocations: 56.48 kB / 450.3 MB, free: 6.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.08402, allocations: 2.223 MB / 452.5 MB, free: 4.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001239/0.08416, allocations: 0.74 MB / 453.3 MB, free: 3.484 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.386e-05/0.08424, allocations: 37.39 kB / 453.3 MB, free: 3.449 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.737e-05/0.08431, allocations: 59.41 kB / 453.4 MB, free: 3.395 MB / 298.7 MB Notification: Performance of SimCode: time 3.3e-07/0.08432, allocations: 0 / 453.4 MB, free: 3.395 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4167/0.501, allocations: 4.737 MB / 458.1 MB, free: 14.64 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002342/0.5013, allocations: 268.9 kB / 458.4 MB, free: 14.29 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.124/2.625, allocations: 3.906 kB / 458.4 MB, free: 14.28 MB / 314.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample.fmu > 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