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.001261/0.001261, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001336/0.001336, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 67.75 kB / 306.4 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1017, allocations: 50.53 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample): time 0.003493/0.1052, allocations: 1.945 MB / 358.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002114/0.1074, allocations: 1.294 MB / 360.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.1075, allocations: 7.938 kB / 360.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003083/0.1079, allocations: 59.8 kB / 360.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003271/0.1082, allocations: 111.6 kB / 360.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007156/0.1089, allocations: 199.6 kB / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002571/0.1092, allocations: 167.5 kB / 360.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.1093, allocations: 37.52 kB / 360.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.1095, allocations: 59.72 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.1096, allocations: 83.61 kB / 360.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.189e-05/0.1096, allocations: 4 kB / 360.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.1098, allocations: 51.97 kB / 360.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.67e-05/0.1099, allocations: 51.77 kB / 360.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.847e-05/0.11, allocations: 75.41 kB / 361 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002956/0.1103, allocations: 231.5 kB / 361.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1103, allocations: 0 / 361.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1103, allocations: 8 kB / 361.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.1103, allocations: 0 / 361.2 MB, free: 10.02 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.0006811/0.111, allocations: 0.5333 MB / 361.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.111, allocations: 8.031 kB / 361.8 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.734e-05/0.1111, allocations: 42.69 kB / 361.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.878e-05/0.1111, allocations: 24.66 kB / 361.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003252/0.1115, allocations: 283.6 kB / 362.1 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.1115, allocations: 8.375 kB / 362.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.74e-05/0.1115, allocations: 7.938 kB / 362.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003222/0.1119, allocations: 171.3 kB / 362.3 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1119, allocations: 0 / 362.3 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.1119, allocations: 4 kB / 362.3 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1119, allocations: 0 / 362.3 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001149/0.112, allocations: 47.91 kB / 362.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004706/0.1125, allocations: 382.3 kB / 362.7 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002299/0.1127, allocations: 119.8 kB / 362.9 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.919e-05/0.1128, allocations: 46.55 kB / 362.9 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.1129, allocations: 4 kB / 362.9 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001953/0.1131, allocations: 75.39 kB / 363 MB, free: 8.059 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.1131, allocations: 0 / 363 MB, free: 8.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003708/0.1135, allocations: 157.2 kB / 363.1 MB, free: 7.898 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.638e-05/0.1136, allocations: 162.2 kB / 363.3 MB, free: 7.703 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003141/0.1139, allocations: 342.6 kB / 363.6 MB, free: 7.359 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.1139, allocations: 29.95 kB / 363.7 MB, free: 7.324 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.29e-05/0.114, allocations: 128.1 kB / 363.8 MB, free: 7.195 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.739e-05/0.114, allocations: 11.8 kB / 363.8 MB, free: 7.184 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.932e-05/0.1141, allocations: 33.66 kB / 363.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.1142, allocations: 338.8 kB / 364.2 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.012e-05/0.1143, allocations: 23.98 kB / 364.2 MB, free: 6.781 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.1144, allocations: 90.78 kB / 364.3 MB, free: 6.668 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001492/0.1145, allocations: 80.22 kB / 364.3 MB, free: 6.574 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1145, allocations: 0 / 364.3 MB, free: 6.574 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002263/0.1148, allocations: 129.3 kB / 364.5 MB, free: 6.441 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.1148, allocations: 4 kB / 364.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1148, allocations: 4 kB / 364.5 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.1148, allocations: 0 / 364.5 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.1149, allocations: 24.23 kB / 364.5 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.1149, allocations: 0 / 364.5 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.726e-05/0.115, allocations: 15.84 kB / 364.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.115, allocations: 7.984 kB / 364.5 MB, free: 6.387 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.0001258/0.1152, allocations: 165.8 kB / 364.7 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.156e-05/0.1153, allocations: 65.44 kB / 364.8 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.914e-05/0.1153, allocations: 25.72 kB / 364.8 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.1153, allocations: 3.984 kB / 364.8 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1153, allocations: 4 kB / 364.8 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.1153, allocations: 3.938 kB / 364.8 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001791/0.1155, allocations: 241.5 kB / 365 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.1155, allocations: 0 / 365 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.493e-05/0.1156, allocations: 23.98 kB / 365 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1156, allocations: 0 / 365 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.1156, allocations: 4 kB / 365.1 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1156, allocations: 4 kB / 365.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1156, allocations: 0 / 365.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002469/0.1159, allocations: 166.4 kB / 365.2 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.328e-05/0.116, allocations: 112.9 kB / 365.3 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.366e-05/0.116, allocations: 4 kB / 365.3 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.702e-05/0.1161, allocations: 4 kB / 365.3 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.1161, allocations: 15.86 kB / 365.4 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.1162, allocations: 8 kB / 365.4 MB, free: 5.445 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000215/0.1164, allocations: 249.9 kB / 365.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1164, allocations: 0 / 365.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002536/0.1167, allocations: 32 kB / 365.6 MB, free: 5.172 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.001285/0.1179, allocations: 1.025 MB / 366.7 MB, free: 4.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002143/0.1182, allocations: 76.03 kB / 366.7 MB, free: 4.176 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1182, allocations: 0 / 366.7 MB, free: 4.176 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.707e-05/0.1183, allocations: 27.98 kB / 366.8 MB, free: 4.148 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003789/0.1187, allocations: 65.91 kB / 366.8 MB, free: 4.082 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002312/0.121, allocations: 2.256 MB / 369.1 MB, free: 1.719 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.1212, allocations: 0.7361 MB / 369.8 MB, free: 0.957 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.71e-05/0.1213, allocations: 29.78 kB / 369.8 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.622e-05/0.1214, allocations: 63.41 kB / 369.9 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1214, allocations: 4 kB / 369.9 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.096/2.217, allocations: 4.96 MB / 374.9 MB, free: 19.11 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001647/2.217, allocations: 265 kB / 375.1 MB, free: 18.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.899/4.116, allocations: 0 / 375.1 MB, free: 18.83 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