Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001404/0.001403, allocations: 108 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 205.8 kB / 18.27 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.596/1.596, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 63.67 kB / 306.6 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1364, allocations: 50.53 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004292/0.1408, allocations: 1.953 MB / 359 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00234/0.1432, allocations: 1.263 MB / 360.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00019/0.1434, allocations: 7.938 kB / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003462/0.1438, allocations: 59.8 kB / 360.4 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004444/0.1442, allocations: 119.6 kB / 360.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008443/0.1451, allocations: 199.1 kB / 360.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003199/0.1454, allocations: 175.5 kB / 360.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.1456, allocations: 37.52 kB / 360.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001527/0.1457, allocations: 79.64 kB / 361 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001423/0.1459, allocations: 83.67 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.669e-05/0.1459, allocations: 8 kB / 361.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001926/0.1461, allocations: 59.97 kB / 361.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.325e-05/0.1462, allocations: 55.77 kB / 361.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001023/0.1463, allocations: 91.41 kB / 361.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004037/0.1467, allocations: 231.5 kB / 361.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1468, allocations: 0 / 361.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1468, allocations: 0 / 361.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.1468, allocations: 4 kB / 361.5 MB, free: 9.879 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.0009093/0.1477, allocations: 0.535 MB / 362 MB, free: 9.289 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1477, allocations: 16.02 kB / 362 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.144e-05/0.1478, allocations: 34.75 kB / 362.1 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.574e-05/0.1479, allocations: 24.66 kB / 362.1 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004008/0.1483, allocations: 287.5 kB / 362.4 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.1483, allocations: 8.375 kB / 362.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.86e-05/0.1484, allocations: 7.938 kB / 362.4 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003576/0.1487, allocations: 155.6 kB / 362.5 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.1487, allocations: 3.938 kB / 362.5 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.1488, allocations: 4 kB / 362.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.1488, allocations: 0 / 362.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001264/0.1489, allocations: 43.91 kB / 362.6 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006127/0.1495, allocations: 394.2 kB / 363 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002625/0.1498, allocations: 119.9 kB / 363.1 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.1499, allocations: 42.56 kB / 363.1 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.15, allocations: 7.984 kB / 363.1 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002807/0.1502, allocations: 79.33 kB / 363.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.713e-06/0.1503, allocations: 0 / 363.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004342/0.1507, allocations: 153.3 kB / 363.4 MB, free: 7.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.34e-05/0.1508, allocations: 158.2 kB / 363.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000387/0.1512, allocations: 342.6 kB / 363.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.1512, allocations: 25.95 kB / 363.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.1513, allocations: 136.1 kB / 364 MB, free: 7.047 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.894e-05/0.1514, allocations: 19.88 kB / 364 MB, free: 7.027 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.443e-05/0.1514, allocations: 29.7 kB / 364.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1516, allocations: 334.8 kB / 364.4 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.537e-05/0.1517, allocations: 19.98 kB / 364.4 MB, free: 6.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.1518, allocations: 90.8 kB / 364.5 MB, free: 6.523 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001559/0.152, allocations: 84.45 kB / 364.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.152, allocations: 4 kB / 364.6 MB, free: 6.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002461/0.1522, allocations: 129.3 kB / 364.7 MB, free: 6.289 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.1523, allocations: 8 kB / 364.7 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1523, allocations: 0 / 364.7 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.1523, allocations: 4 kB / 364.7 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.1524, allocations: 15.98 kB / 364.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/0.1524, allocations: 4 kB / 364.7 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.47e-05/0.1525, allocations: 11.84 kB / 364.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/0.1525, allocations: 8 kB / 364.8 MB, free: 6.238 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,table.y,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.0001599/0.1527, allocations: 169.8 kB / 364.9 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.693e-05/0.1528, allocations: 57.52 kB / 365 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.198e-05/0.1529, allocations: 25.7 kB / 365 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1529, allocations: 4 kB / 365 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.1529, allocations: 0 / 365 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1529, allocations: 3.938 kB / 365 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002432/0.1531, allocations: 241.5 kB / 365.3 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1532, allocations: 4 kB / 365.3 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.89e-05/0.1532, allocations: 15.92 kB / 365.3 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.1532, allocations: 8 kB / 365.3 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.1533, allocations: 8 kB / 365.3 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1533, allocations: 0 / 365.3 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1533, allocations: 3.938 kB / 365.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002698/0.1536, allocations: 166.4 kB / 365.5 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.953e-05/0.1537, allocations: 108.9 kB / 365.6 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.907e-05/0.1537, allocations: 11.98 kB / 365.6 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.409e-05/0.1538, allocations: 64 / 365.6 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.307e-05/0.1538, allocations: 19.92 kB / 365.6 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.72e-05/0.1539, allocations: 4 kB / 365.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002523/0.1541, allocations: 245.9 kB / 365.8 MB, free: 5.059 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1541, allocations: 0 / 365.8 MB, free: 5.059 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002832/0.1544, allocations: 39.98 kB / 365.9 MB, free: 5.02 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,table.y,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.001451/0.1559, allocations: 1.006 MB / 366.9 MB, free: 4.117 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002256/0.1561, allocations: 76.03 kB / 367 MB, free: 4.043 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1561, allocations: 8.062 kB / 367 MB, free: 4.035 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.448e-05/0.1562, allocations: 28.11 kB / 367 MB, free: 4.008 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004241/0.1567, allocations: 78.39 kB / 367.1 MB, free: 3.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002858/0.1595, allocations: 2.246 MB / 369.3 MB, free: 1.574 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.1599, allocations: 0.7436 MB / 370.1 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001149/0.1601, allocations: 25.53 kB / 370.1 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.1602, allocations: 63.41 kB / 370.1 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1602, allocations: 4 kB / 370.2 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3057/0.4659, allocations: 5.145 MB / 375.3 MB, free: 19.64 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002245/0.4662, allocations: 254.5 kB / 375.5 MB, free: 19.35 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.181/2.647, allocations: 0 / 375.5 MB, free: 19.35 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.realToInteger.u,table.realToInteger.y,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],table.y,time