Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.0009679/0.0009676, allocations: 176.8 kB / 16.77 MB, free: 5.047 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.581/1.581, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0008485/0.0008487, allocations: 81.38 kB / 271.3 MB, free: 8.258 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.09871/0.09871, allocations: 12.59 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000475/0.0004753, allocations: 16 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1131, allocations: 50.37 MB / 443 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample): time 0.00243/0.1156, allocations: 1.556 MB / 444.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001595/0.1172, allocations: 0.9097 MB / 445.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/0.1174, allocations: 7.938 kB / 445.4 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006785/0.1181, allocations: 131.7 kB / 445.6 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000333/0.1185, allocations: 99.69 kB / 445.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005411/0.119, allocations: 147.7 kB / 445.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002622/0.1193, allocations: 163.5 kB / 446 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.1194, allocations: 25.55 kB / 446 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.1196, allocations: 71.64 kB / 446.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/0.1197, allocations: 59.7 kB / 446.1 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.368e-05/0.1198, allocations: 0 / 446.1 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001519/0.1199, allocations: 51.95 kB / 446.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.561e-05/0.12, allocations: 31.84 kB / 446.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.625e-05/0.1201, allocations: 85.31 kB / 446.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000248/0.1203, allocations: 144 kB / 446.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.1204, allocations: 0 / 446.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1204, allocations: 0 / 446.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1204, allocations: 0 / 446.4 MB, free: 12.65 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.0007801/0.1212, allocations: 0.4885 MB / 446.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.1212, allocations: 8.031 kB / 446.9 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.869e-05/0.1213, allocations: 16.75 kB / 446.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003548/0.1217, allocations: 258.9 kB / 447.2 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.1217, allocations: 8.359 kB / 447.2 MB, free: 11.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/0.1217, allocations: 12.12 kB / 447.2 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003162/0.1221, allocations: 158.5 kB / 447.4 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.1221, allocations: 0 / 447.4 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.1221, allocations: 7.984 kB / 447.4 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.1221, allocations: 4 kB / 447.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.951e-05/0.1222, allocations: 27.98 kB / 447.4 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004783/0.1227, allocations: 366.3 kB / 447.8 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001916/0.1229, allocations: 111.9 kB / 447.9 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.914e-05/0.123, allocations: 42.56 kB / 447.9 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.068e-05/0.123, allocations: 0 / 447.9 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001643/0.1232, allocations: 75.33 kB / 448 MB, free: 10.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.1232, allocations: 4 kB / 448 MB, free: 10.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003401/0.1236, allocations: 137.3 kB / 448.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.027e-05/0.1236, allocations: 136.5 kB / 448.3 MB, free: 10.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002331/0.1239, allocations: 257 kB / 448.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.1239, allocations: 29.7 kB / 448.5 MB, free: 10.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.459e-05/0.124, allocations: 120.2 kB / 448.6 MB, free: 10.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/0.124, allocations: 23.98 kB / 448.7 MB, free: 10.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.57e-06/0.124, allocations: 4 kB / 448.7 MB, free: 10.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.629e-05/0.1241, allocations: 330.8 kB / 449 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.708e-05/0.1242, allocations: 27.92 kB / 449 MB, free: 9.746 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.234e-05/0.1243, allocations: 65.94 kB / 449.1 MB, free: 9.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001134/0.1244, allocations: 84.25 kB / 449.2 MB, free: 9.562 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1244, allocations: 0 / 449.2 MB, free: 9.562 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001844/0.1246, allocations: 117.4 kB / 449.3 MB, free: 9.441 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.1246, allocations: 4 kB / 449.3 MB, free: 9.438 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.1247, allocations: 4.125 kB / 449.3 MB, free: 9.434 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.1247, allocations: 4 kB / 449.3 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.871e-05/0.1248, allocations: 8 kB / 449.3 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.956e-06/0.1248, allocations: 7.984 kB / 449.3 MB, free: 9.414 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.005e-05/0.1248, allocations: 11.84 kB / 449.3 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.1249, allocations: 7.938 kB / 449.3 MB, free: 9.395 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 ($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 () * 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.0001117/0.125, allocations: 145.9 kB / 449.5 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.02e-05/0.1251, allocations: 69.5 kB / 449.5 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.775e-05/0.1251, allocations: 21.72 kB / 449.6 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1251, allocations: 0 / 449.6 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1251, allocations: 0 / 449.6 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/0.1251, allocations: 11.92 kB / 449.6 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001467/0.1253, allocations: 225.5 kB / 449.8 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.1253, allocations: 0 / 449.8 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.53e-05/0.1253, allocations: 4 kB / 449.8 MB, free: 8.863 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1254, allocations: 0 / 449.8 MB, free: 8.863 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.1254, allocations: 4 kB / 449.8 MB, free: 8.859 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.1254, allocations: 3.938 kB / 449.8 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.1254, allocations: 4.062 kB / 449.8 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002086/0.1256, allocations: 162.4 kB / 450 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.022e-05/0.1257, allocations: 108.9 kB / 450.1 MB, free: 8.543 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/0.1257, allocations: 4 kB / 450.1 MB, free: 8.539 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.228e-05/0.1258, allocations: 12 kB / 450.1 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.107e-05/0.1258, allocations: 7.984 kB / 450.1 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.54e-05/0.1259, allocations: 7.938 kB / 450.1 MB, free: 8.512 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001624/0.126, allocations: 192.5 kB / 450.3 MB, free: 8.324 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.126, allocations: 0 / 450.3 MB, free: 8.324 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002455/0.1263, allocations: 28 kB / 450.3 MB, free: 8.297 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,sample.u,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 (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.0008761/0.1272, allocations: 425.7 kB / 450.7 MB, free: 7.871 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000195/0.1274, allocations: 67.91 kB / 450.8 MB, free: 7.805 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1274, allocations: 0 / 450.8 MB, free: 7.805 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.863e-05/0.1275, allocations: 23.98 kB / 450.8 MB, free: 7.781 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/0.1279, allocations: 56.31 kB / 450.9 MB, free: 7.727 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005767/0.1285, allocations: 366 kB / 451.2 MB, free: 7.332 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002286/0.1287, allocations: 0.7283 MB / 452 MB, free: 6.578 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.987e-05/0.1288, allocations: 19.44 kB / 452 MB, free: 6.559 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.1288, allocations: 0 / 452 MB, free: 6.559 MB / 298.7 MB Notification: Performance of Templates: time 0.004994/0.1338, allocations: 2.574 MB / 454.6 MB, free: 3.98 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches