Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001328/0.001327, allocations: 114.1 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.583/1.583, allocations: 227.4 MB / 246.4 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 57.47 kB / 306.6 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1332, allocations: 50.52 MB / 357.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.00742/0.1407, allocations: 1.969 MB / 359 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003558/0.1443, allocations: 1.179 MB / 360.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003052/0.1447, allocations: 4 kB / 360.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.1458, allocations: 147.6 kB / 360.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007247/0.1466, allocations: 135.6 kB / 360.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008462/0.1474, allocations: 155.5 kB / 360.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004857/0.1479, allocations: 199.5 kB / 360.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001872/0.1482, allocations: 33.52 kB / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002777/0.1484, allocations: 79.69 kB / 361 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000248/0.1487, allocations: 71.64 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.592e-05/0.1488, allocations: 12 kB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002201/0.149, allocations: 59.89 kB / 361.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.1492, allocations: 39.91 kB / 361.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001894/0.1494, allocations: 79.42 kB / 361.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006398/0.15, allocations: 203.6 kB / 361.4 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.1501, allocations: 0 / 361.4 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.1501, allocations: 4 kB / 361.4 MB, free: 9.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.1501, allocations: 0 / 361.4 MB, free: 9.926 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001423/0.1515, allocations: 0.5104 MB / 361.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.645e-05/0.1516, allocations: 8.031 kB / 361.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.501e-05/0.1517, allocations: 42.75 kB / 362 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.706e-05/0.1518, allocations: 20.66 kB / 362 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005836/0.1524, allocations: 274.8 kB / 362.3 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.1524, allocations: 4.375 kB / 362.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.396e-05/0.1525, allocations: 7.938 kB / 362.3 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005384/0.153, allocations: 154.7 kB / 362.4 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.1531, allocations: 0 / 362.4 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.193e-05/0.1531, allocations: 4 kB / 362.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.1531, allocations: 0 / 362.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001981/0.1533, allocations: 35.92 kB / 362.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007979/0.1542, allocations: 358.4 kB / 362.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003659/0.1545, allocations: 115.8 kB / 362.9 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.1547, allocations: 42.56 kB / 363 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.356e-05/0.1548, allocations: 4 kB / 363 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002379/0.155, allocations: 71.39 kB / 363.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.725e-06/0.155, allocations: 0 / 363.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.000616/0.1557, allocations: 141.3 kB / 363.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.1558, allocations: 144.8 kB / 363.3 MB, free: 7.746 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005322/0.1563, allocations: 276.8 kB / 363.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.567e-05/0.1564, allocations: 29.7 kB / 363.6 MB, free: 7.434 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.1566, allocations: 116.1 kB / 363.7 MB, free: 7.316 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.528e-05/0.1566, allocations: 23.69 kB / 363.8 MB, free: 7.293 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.314e-05/0.1567, allocations: 29.7 kB / 363.8 MB, free: 7.258 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002014/0.1569, allocations: 330.8 kB / 364.1 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.1571, allocations: 23.98 kB / 364.1 MB, free: 6.902 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001881/0.1573, allocations: 70.06 kB / 364.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.1575, allocations: 80.19 kB / 364.3 MB, free: 6.719 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1575, allocations: 0 / 364.3 MB, free: 6.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003973/0.158, allocations: 113.4 kB / 364.4 MB, free: 6.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.158, allocations: 4 kB / 364.4 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.158, allocations: 0 / 364.4 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.1581, allocations: 4 kB / 364.4 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.1582, allocations: 20.36 kB / 364.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.49e-05/0.1582, allocations: 8 kB / 364.4 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000135/0.1584, allocations: 15.84 kB / 364.5 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.1584, allocations: 4 kB / 364.5 MB, free: 6.547 MB / 302.1 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,sample1.u,shiftSample1.y,shiftSample1.u,sample1.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 0.0002144/0.1586, allocations: 141.8 kB / 364.6 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.1588, allocations: 65.44 kB / 364.7 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.254e-05/0.1589, allocations: 29.69 kB / 364.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.1589, allocations: 0 / 364.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.159, allocations: 4.062 kB / 364.7 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.159, allocations: 7.938 kB / 364.7 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003409/0.1593, allocations: 225.4 kB / 364.9 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1593, allocations: 0 / 364.9 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.831e-05/0.1594, allocations: 7.984 kB / 364.9 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/0.1594, allocations: 4 kB / 364.9 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.207e-05/0.1595, allocations: 4 kB / 364.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.1595, allocations: 3.938 kB / 364.9 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1595, allocations: 4 kB / 364.9 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004036/0.1599, allocations: 150.5 kB / 365.1 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001532/0.1601, allocations: 120.7 kB / 365.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.411e-05/0.1601, allocations: 0 / 365.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.1603, allocations: 8.094 kB / 365.2 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.72e-05/0.1603, allocations: 15.86 kB / 365.2 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.89e-05/0.1604, allocations: 4 kB / 365.2 MB, free: 5.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003102/0.1607, allocations: 204.5 kB / 365.4 MB, free: 5.457 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.1607, allocations: 0 / 365.4 MB, free: 5.457 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004659/0.1612, allocations: 28 kB / 365.5 MB, free: 5.43 MB / 302.1 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.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.002375/0.1636, allocations: 0.9877 MB / 366.5 MB, free: 4.543 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003429/0.1639, allocations: 79.84 kB / 366.5 MB, free: 4.465 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.164, allocations: 0 / 366.5 MB, free: 4.465 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.1641, allocations: 23.98 kB / 366.6 MB, free: 4.441 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006185/0.1647, allocations: 63.75 kB / 366.6 MB, free: 4.387 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003815/0.1686, allocations: 1.992 MB / 368.6 MB, free: 2.273 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004967/0.1691, allocations: 0.7319 MB / 369.3 MB, free: 1.516 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000165/0.1693, allocations: 29.52 kB / 369.4 MB, free: 1.488 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.1694, allocations: 47.42 kB / 369.4 MB, free: 1.441 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1694, allocations: 0 / 369.4 MB, free: 1.441 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1997/0.3692, allocations: 4.448 MB / 373.9 MB, free: 19.77 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001774/0.3694, allocations: 264.3 kB / 374.1 MB, free: 19.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.483/2.853, allocations: 0 / 374.1 MB, free: 19.48 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Error getting time " Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nout,table.combiTimeTable.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.combiTimeTable.y[1],table.extrapolation,table.realToBoolean.threshold,table.realToBoolean.u,table.realToBoolean.y,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],table.y,time