Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 101.2 kB / 15.73 MB, free: 436 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001686/0.001686, allocations: 178.3 kB / 16.61 MB, free: 6.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.566/1.566, allocations: 205.4 MB / 222.8 MB, free: 5.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08268/0.08268, allocations: 12.6 MB / 283.6 MB, free: 8.703 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008783/0.0008783, allocations: 24 kB / 344.5 MB, free: 21.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1087, allocations: 50.38 MB / 394.9 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.002612/0.1114, allocations: 1.565 MB / 396.5 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.113, allocations: 0.9213 MB / 397.4 MB, free: 308 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.1131, allocations: 11.94 kB / 397.4 MB, free: 296 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000565/0.1137, allocations: 131.6 kB / 397.5 MB, free: 164 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002461/0.114, allocations: 91.73 kB / 397.6 MB, free: 72 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004874/0.1145, allocations: 155.7 kB / 397.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00021/0.1147, allocations: 115.6 kB / 397.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.1148, allocations: 37.64 kB / 397.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.115, allocations: 67.69 kB / 398 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.666e-05/0.1151, allocations: 59.7 kB / 398 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.799e-05/0.1151, allocations: 4 kB / 398 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.1152, allocations: 31.92 kB / 398.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.444e-05/0.1153, allocations: 39.84 kB / 398.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.71e-05/0.1153, allocations: 49.62 kB / 398.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002209/0.1156, allocations: 159.9 kB / 398.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1156, allocations: 0 / 398.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1156, allocations: 0 / 398.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.658e-06/0.1156, allocations: 0 / 398.3 MB, free: 15.36 MB / 302.1 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.000736/0.1163, allocations: 0.4884 MB / 398.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.1164, allocations: 12.03 kB / 398.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.109e-05/0.1165, allocations: 19.72 kB / 398.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003779/0.1169, allocations: 269.5 kB / 399.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.1169, allocations: 4 kB / 399.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.927e-05/0.1169, allocations: 15.94 kB / 399.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003655/0.1173, allocations: 167.5 kB / 399.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1173, allocations: 0 / 399.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.1173, allocations: 4 kB / 399.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.1173, allocations: 4 kB / 399.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001039/0.1175, allocations: 43.91 kB / 399.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005538/0.118, allocations: 379.1 kB / 399.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002437/0.1183, allocations: 130.5 kB / 399.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.612e-05/0.1183, allocations: 4 kB / 399.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001741/0.1185, allocations: 75.45 kB / 399.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.713e-06/0.1185, allocations: 0 / 399.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003615/0.1189, allocations: 161.2 kB / 400.1 MB, free: 13.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.119, allocations: 162.6 kB / 400.2 MB, free: 13.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.1193, allocations: 269 kB / 400.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.1193, allocations: 29.7 kB / 400.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.774e-05/0.1194, allocations: 124.3 kB / 400.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.323e-05/0.1194, allocations: 11.91 kB / 400.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.569e-06/0.1194, allocations: 0 / 400.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.1196, allocations: 334.8 kB / 401 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.779e-05/0.1196, allocations: 20 kB / 401 MB, free: 12.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.1198, allocations: 87.64 kB / 401.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.664e-05/0.1198, allocations: 31.97 kB / 401.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.1198, allocations: 0 / 401.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002004/0.12, allocations: 133.2 kB / 401.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.567e-05/0.1202, allocations: 8 kB / 401.2 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.1202, allocations: 0 / 401.2 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.1202, allocations: 7.984 kB / 401.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.271e-05/0.1203, allocations: 12 kB / 401.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.1203, allocations: 192 / 401.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.225e-05/0.1204, allocations: 19.89 kB / 401.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.1204, allocations: 11.98 kB / 401.3 MB, free: 12.03 MB / 302.1 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001222/0.1205, allocations: 149.5 kB / 401.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.1206, allocations: 77.34 kB / 401.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.975e-05/0.1207, allocations: 25.7 kB / 401.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.1207, allocations: 4.312 kB / 401.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1207, allocations: 4.094 kB / 401.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.1207, allocations: 7.984 kB / 401.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.1209, allocations: 229.6 kB / 401.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1209, allocations: 4 kB / 401.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.686e-05/0.121, allocations: 7.984 kB / 401.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.121, allocations: 0 / 401.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.121, allocations: 7.938 kB / 401.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.121, allocations: 3.938 kB / 401.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.121, allocations: 4 kB / 401.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002756/0.1213, allocations: 216.4 kB / 402 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.1214, allocations: 112.8 kB / 402.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.118e-05/0.1214, allocations: 7.953 kB / 402.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.377e-05/0.1215, allocations: 8 kB / 402.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.813e-05/0.1216, allocations: 11.98 kB / 402.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.1216, allocations: 4 kB / 402.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001818/0.1218, allocations: 196.5 kB / 402.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1218, allocations: 0 / 402.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002525/0.122, allocations: 32 kB / 402.4 MB, free: 10.82 MB / 302.1 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,sample.u,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 (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.000918/0.123, allocations: 415.9 kB / 402.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002255/0.1232, allocations: 79.78 kB / 402.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1232, allocations: 0 / 402.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.402e-05/0.1233, allocations: 27.94 kB / 402.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003728/0.1237, allocations: 61.09 kB / 403 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006486/0.1243, allocations: 373.3 kB / 403.3 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000453/0.1248, allocations: 0.7362 MB / 404.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001111/0.1249, allocations: 25.53 kB / 404.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.919e-05/0.125, allocations: 23.42 kB / 404.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.125, allocations: 0 / 404.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of Templates: time 0.006361/0.1314, allocations: 2.416 MB / 406.5 MB, free: 6.605 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:backSample1.y,sample.y,shiftSample1.y,time Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.realToBoolean.threshold,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],time