Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.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.SuperSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001102/0.001102, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001119/0.001119, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 62.45 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1198, allocations: 50.52 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample): time 0.004471/0.1243, allocations: 1.887 MB / 359.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002595/0.1269, allocations: 1.301 MB / 360.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002366/0.1272, allocations: 4 kB / 360.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003962/0.1277, allocations: 63.67 kB / 360.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005467/0.1282, allocations: 135.4 kB / 361 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009268/0.1292, allocations: 230.4 kB / 361.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003627/0.1295, allocations: 179.5 kB / 361.4 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.1297, allocations: 29.53 kB / 361.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001718/0.1299, allocations: 79.69 kB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.13, allocations: 75.62 kB / 361.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.281e-05/0.1301, allocations: 12 kB / 361.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002119/0.1303, allocations: 63.97 kB / 361.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.1304, allocations: 55.77 kB / 361.7 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.1305, allocations: 75.48 kB / 361.8 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005218/0.1311, allocations: 251.4 kB / 362 MB, free: 9.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1311, allocations: 0 / 362 MB, free: 9.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1311, allocations: 0 / 362 MB, free: 9.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.67e-05/0.1311, allocations: 0 / 362 MB, free: 9.59 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.00105/0.1322, allocations: 0.5311 MB / 362.5 MB, free: 9.004 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.714e-05/0.1322, allocations: 16.03 kB / 362.5 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.868e-05/0.1323, allocations: 38.73 kB / 362.6 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.1324, allocations: 24.66 kB / 362.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005279/0.1329, allocations: 287.6 kB / 362.9 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.133, allocations: 4.375 kB / 362.9 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.86e-05/0.133, allocations: 11.94 kB / 362.9 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004337/0.1335, allocations: 155.6 kB / 363.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.1335, allocations: 3.938 kB / 363.1 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.1335, allocations: 3.984 kB / 363.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.1335, allocations: 0 / 363.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001497/0.1337, allocations: 39.92 kB / 363.1 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000727/0.1344, allocations: 390.3 kB / 363.5 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003309/0.1348, allocations: 123.8 kB / 363.6 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.1349, allocations: 46.56 kB / 363.7 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.134e-05/0.1349, allocations: 0 / 363.7 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003351/0.1353, allocations: 83.38 kB / 363.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.1353, allocations: 0 / 363.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.000516/0.1358, allocations: 157.2 kB / 363.9 MB, free: 7.461 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001664/0.136, allocations: 162.2 kB / 364 MB, free: 7.266 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004728/0.1364, allocations: 334.6 kB / 364.4 MB, free: 6.926 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.1365, allocations: 29.7 kB / 364.4 MB, free: 6.891 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.1366, allocations: 128.1 kB / 364.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.567e-05/0.1367, allocations: 15.81 kB / 364.5 MB, free: 6.746 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.14e-05/0.1367, allocations: 33.89 kB / 364.6 MB, free: 6.707 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1369, allocations: 334.8 kB / 364.9 MB, free: 6.371 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.531e-05/0.137, allocations: 23.98 kB / 364.9 MB, free: 6.348 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.1371, allocations: 86.84 kB / 365 MB, free: 6.238 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001607/0.1373, allocations: 88.16 kB / 365.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1373, allocations: 0 / 365.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002537/0.1375, allocations: 121.3 kB / 365.2 MB, free: 6.012 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.1376, allocations: 8 kB / 365.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1376, allocations: 0 / 365.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.1376, allocations: 8.125 kB / 365.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.1377, allocations: 19.94 kB / 365.3 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.1377, allocations: 7.984 kB / 365.3 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.548e-05/0.1378, allocations: 11.84 kB / 365.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.1378, allocations: 4 kB / 365.3 MB, free: 5.953 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,superSample1.y,superSample1.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.0001645/0.138, allocations: 157.7 kB / 365.4 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.731e-05/0.1381, allocations: 65.44 kB / 365.5 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.465e-05/0.1382, allocations: 29.77 kB / 365.5 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.1382, allocations: 4 kB / 365.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.1382, allocations: 320 / 365.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.1382, allocations: 3.938 kB / 365.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002504/0.1385, allocations: 249.5 kB / 365.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.1385, allocations: 4 kB / 365.8 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.083e-05/0.1386, allocations: 8 kB / 365.8 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.1386, allocations: 0 / 365.8 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.1386, allocations: 11.92 kB / 365.8 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.1386, allocations: 0 / 365.8 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1386, allocations: 3.938 kB / 365.8 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002954/0.1389, allocations: 174.4 kB / 366 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.1391, allocations: 104.9 kB / 366.1 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.67e-05/0.1391, allocations: 7.938 kB / 366.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.77e-05/0.1392, allocations: 7.984 kB / 366.1 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.823e-05/0.1392, allocations: 7.938 kB / 366.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.1393, allocations: 11.98 kB / 366.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002704/0.1395, allocations: 249.9 kB / 366.4 MB, free: 4.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1396, allocations: 0 / 366.4 MB, free: 4.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002941/0.1399, allocations: 36 kB / 366.4 MB, free: 4.734 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,superSample1.y,sample1.y,superSample1.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.001775/0.1416, allocations: 1.01 MB / 367.4 MB, free: 3.828 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002781/0.1419, allocations: 79.83 kB / 367.5 MB, free: 3.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1419, allocations: 0 / 367.5 MB, free: 3.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.363e-05/0.142, allocations: 31.98 kB / 367.5 MB, free: 3.719 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004842/0.1425, allocations: 62.19 kB / 367.6 MB, free: 3.656 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003012/0.1456, allocations: 2.222 MB / 369.8 MB, free: 1.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004091/0.146, allocations: 0.7514 MB / 370.5 MB, free: 0.543 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001438/0.1461, allocations: 25.53 kB / 370.6 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.1463, allocations: 55.42 kB / 370.6 MB, free: 476 kB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1463, allocations: 0 / 370.6 MB, free: 476 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3243/0.4707, allocations: 5.213 MB / 375.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.067/8.538, allocations: 10.02 kB / 375.8 MB, free: 19.59 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SuperSample/SuperSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Error getting time " Variables in the reference:time,sample1.y,superSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,superSample1.factor,superSample1.inferFactor,superSample1.u,superSample1.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