Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00135/0.00135, allocations: 116.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.001407/0.001407, 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.553/1.553, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 55.22 kB / 306.6 MB, free: 0.8672 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1283, allocations: 50.53 MB / 357.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.004857/0.1332, allocations: 1.973 MB / 359.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002614/0.1359, allocations: 1.282 MB / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000197/0.1361, allocations: 0 / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004217/0.1366, allocations: 63.8 kB / 360.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005135/0.1372, allocations: 119.6 kB / 360.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008959/0.1381, allocations: 207.1 kB / 360.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00037/0.1385, allocations: 183.5 kB / 360.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001852/0.1387, allocations: 37.53 kB / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001893/0.1389, allocations: 79.64 kB / 361 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/0.139, allocations: 87.55 kB / 361.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.238e-05/0.1391, allocations: 12 kB / 361.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001928/0.1393, allocations: 67.95 kB / 361.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.1394, allocations: 51.83 kB / 361.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.936e-05/0.1395, allocations: 83.41 kB / 361.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004161/0.1399, allocations: 243.4 kB / 361.6 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.1399, allocations: 7.984 kB / 361.6 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1399, allocations: 0 / 361.6 MB, free: 9.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.1399, allocations: 0 / 361.6 MB, free: 9.84 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.0009717/0.1409, allocations: 0.5428 MB / 362.1 MB, free: 9.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.089e-05/0.141, allocations: 8.031 kB / 362.1 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.326e-05/0.1411, allocations: 42.73 kB / 362.2 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.676e-05/0.1412, allocations: 24.66 kB / 362.2 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000467/0.1416, allocations: 291.5 kB / 362.5 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.1417, allocations: 384 / 362.5 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.811e-05/0.1417, allocations: 19.94 kB / 362.5 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004811/0.1422, allocations: 168.3 kB / 362.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.669e-05/0.1423, allocations: 4 kB / 362.6 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.055e-05/0.1423, allocations: 8 kB / 362.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.1423, allocations: 4 kB / 362.7 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000144/0.1425, allocations: 47.84 kB / 362.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007878/0.1433, allocations: 470.5 kB / 363.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003251/0.1436, allocations: 138.5 kB / 363.3 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.1437, allocations: 67.34 kB / 363.4 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.738e-05/0.1438, allocations: 0 / 363.4 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003541/0.1441, allocations: 101.1 kB / 363.5 MB, free: 7.672 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.543e-06/0.1441, allocations: 0 / 363.5 MB, free: 7.672 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005083/0.1447, allocations: 173.2 kB / 363.6 MB, free: 7.496 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001819/0.1449, allocations: 191.9 kB / 363.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004434/0.1453, allocations: 346.8 kB / 364.2 MB, free: 6.918 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.1453, allocations: 33.64 kB / 364.2 MB, free: 6.879 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.1455, allocations: 124.8 kB / 364.3 MB, free: 6.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.51e-05/0.1455, allocations: 27.73 kB / 364.3 MB, free: 6.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.497e-05/0.1456, allocations: 33.7 kB / 364.4 MB, free: 6.684 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.1458, allocations: 334.8 kB / 364.7 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.745e-05/0.1459, allocations: 23.98 kB / 364.7 MB, free: 6.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.1461, allocations: 91.7 kB / 364.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002125/0.1463, allocations: 101 kB / 364.9 MB, free: 6.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1463, allocations: 4 kB / 364.9 MB, free: 6.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003035/0.1466, allocations: 141.2 kB / 365.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.1466, allocations: 4 kB / 365.1 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.1467, allocations: 4 kB / 365.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.1467, allocations: 0 / 365.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.1468, allocations: 23.98 kB / 365.1 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.1468, allocations: 0 / 365.1 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.849e-05/0.147, allocations: 11.84 kB / 365.1 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.147, allocations: 11.98 kB / 365.1 MB, free: 5.887 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001807/0.1472, allocations: 167.3 kB / 365.3 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.1473, allocations: 73.41 kB / 365.3 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.619e-05/0.1474, allocations: 33.61 kB / 365.4 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.682e-05/0.1474, allocations: 4 kB / 365.4 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.1474, allocations: 0 / 365.4 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1474, allocations: 3.938 kB / 365.4 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002656/0.1477, allocations: 245.5 kB / 365.6 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1477, allocations: 0 / 365.6 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.981e-05/0.1478, allocations: 24.05 kB / 365.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.1478, allocations: 4 kB / 365.7 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.1478, allocations: 0 / 365.7 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.149e-06/0.1478, allocations: 4 kB / 365.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1478, allocations: 0 / 365.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003229/0.1482, allocations: 183.3 kB / 365.8 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.1483, allocations: 120.8 kB / 366 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.1483, allocations: 0 / 366 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.372e-05/0.1484, allocations: 4 kB / 366 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.032e-05/0.1485, allocations: 19.86 kB / 366 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.768e-05/0.1485, allocations: 4 kB / 366 MB, free: 4.898 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000255/0.1488, allocations: 253.9 kB / 366.2 MB, free: 4.652 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1488, allocations: 0 / 366.2 MB, free: 4.652 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003009/0.1491, allocations: 32 kB / 366.3 MB, free: 4.621 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,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 (11): * Single equations (assignments): 9 * 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.001738/0.1508, allocations: 1.041 MB / 367.3 MB, free: 3.684 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002982/0.1511, allocations: 87.83 kB / 367.4 MB, free: 3.598 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.1512, allocations: 0 / 367.4 MB, free: 3.598 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.1513, allocations: 35.98 kB / 367.4 MB, free: 3.562 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.1518, allocations: 72.12 kB / 367.5 MB, free: 3.492 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003115/0.1549, allocations: 2.321 MB / 369.8 MB, free: 1.047 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.1553, allocations: 0.7515 MB / 370.6 MB, free: 276 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001333/0.1555, allocations: 29.77 kB / 370.6 MB, free: 244 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.1556, allocations: 63.41 kB / 370.7 MB, free: 184 kB / 302.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1556, allocations: 3.938 kB / 370.7 MB, free: 180 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2712/0.4268, allocations: 5.274 MB / 375.9 MB, free: 19.76 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000207/0.427, allocations: 261.1 kB / 376.2 MB, free: 19.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.18/2.608, allocations: 0 / 376.2 MB, free: 19.49 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Error getting time " Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.u,hold1.y,hold1.y_start,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