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.0006868/0.0006868, allocations: 93.14 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000815/0.0008152, allocations: 201.5 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.221/1.221, allocations: 227.7 MB / 246.8 MB, free: 11.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000198/0.000198, allocations: 8 kB / 307.8 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08213/0.08234, allocations: 51.51 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample): time 0.002081/0.08445, allocations: 1.595 MB / 361 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001925/0.0864, allocations: 1.259 MB / 362.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.08655, allocations: 3.938 kB / 362.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002965/0.08686, allocations: 59.8 kB / 362.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002895/0.08716, allocations: 115.6 kB / 362.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000612/0.08778, allocations: 207.3 kB / 362.6 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002226/0.08801, allocations: 167.5 kB / 362.8 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.08813, allocations: 37.39 kB / 362.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.08823, allocations: 63.7 kB / 362.8 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.08835, allocations: 71.62 kB / 362.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.876e-05/0.08838, allocations: 4 kB / 362.9 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001363/0.08852, allocations: 51.97 kB / 363 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.962e-05/0.08861, allocations: 55.75 kB / 363 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.148e-05/0.08871, allocations: 97.19 kB / 363.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003234/0.08904, allocations: 227.4 kB / 363.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.08905, allocations: 0 / 363.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.08906, allocations: 0 / 363.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.08907, allocations: 0 / 363.3 MB, free: 9.188 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.0007109/0.08979, allocations: 0.5041 MB / 363.8 MB, free: 8.629 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.08984, allocations: 8.031 kB / 363.9 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.504e-05/0.0899, allocations: 42.73 kB / 363.9 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.124e-05/0.08997, allocations: 28.59 kB / 363.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003522/0.09032, allocations: 291.5 kB / 364.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.09035, allocations: 8.375 kB / 364.2 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.09038, allocations: 7.938 kB / 364.2 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003288/0.09071, allocations: 155.6 kB / 364.4 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.09073, allocations: 0 / 364.4 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.09075, allocations: 4 kB / 364.4 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.09077, allocations: 4 kB / 364.4 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001083/0.09088, allocations: 31.92 kB / 364.4 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005223/0.09141, allocations: 386.4 kB / 364.8 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002393/0.09166, allocations: 115.9 kB / 364.9 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.664e-05/0.09176, allocations: 50.5 kB / 365 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.0918, allocations: 12.06 kB / 365 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001748/0.09198, allocations: 71.38 kB / 365 MB, free: 7.258 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.693e-06/0.09199, allocations: 0 / 365 MB, free: 7.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003744/0.09237, allocations: 153.3 kB / 365.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.648e-05/0.09246, allocations: 166.4 kB / 365.4 MB, free: 6.902 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003346/0.0928, allocations: 342.5 kB / 365.7 MB, free: 6.559 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.09283, allocations: 29.7 kB / 365.7 MB, free: 6.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.806e-05/0.09291, allocations: 128.1 kB / 365.8 MB, free: 6.395 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.193e-05/0.09294, allocations: 15.81 kB / 365.9 MB, free: 6.379 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.622e-05/0.09297, allocations: 13.72 kB / 365.9 MB, free: 6.359 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.459e-05/0.09307, allocations: 338.8 kB / 366.2 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.629e-05/0.09314, allocations: 31.92 kB / 366.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.464e-05/0.09324, allocations: 78.84 kB / 366.3 MB, free: 5.887 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.09339, allocations: 84.22 kB / 366.4 MB, free: 5.789 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.0934, allocations: 0 / 366.4 MB, free: 5.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002159/0.09362, allocations: 125.4 kB / 366.5 MB, free: 5.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.09364, allocations: 7.938 kB / 366.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.09365, allocations: 4 kB / 366.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.09367, allocations: 0 / 366.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.905e-05/0.09377, allocations: 24.36 kB / 366.5 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.09379, allocations: 4 kB / 366.6 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.774e-05/0.09387, allocations: 15.84 kB / 366.6 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.09389, allocations: 11.98 kB / 366.6 MB, free: 5.594 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.0001213/0.09402, allocations: 157.7 kB / 366.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.612e-05/0.0941, allocations: 69.34 kB / 366.8 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.022e-05/0.09416, allocations: 29.75 kB / 366.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.09417, allocations: 3.984 kB / 366.8 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.09418, allocations: 8.062 kB / 366.8 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.09419, allocations: 3.938 kB / 366.8 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001757/0.09437, allocations: 233.6 kB / 367.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.09438, allocations: 0 / 367.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.148e-05/0.09444, allocations: 19.98 kB / 367.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.09445, allocations: 0 / 367.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.09447, allocations: 0 / 367.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.09447, allocations: 4 kB / 367.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.09448, allocations: 3.938 kB / 367.1 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002357/0.09472, allocations: 170.4 kB / 367.3 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.958e-05/0.09482, allocations: 116.8 kB / 367.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.168e-05/0.09486, allocations: 4 kB / 367.4 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.799e-05/0.09493, allocations: 7.984 kB / 367.4 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.406e-05/0.09499, allocations: 7.938 kB / 367.4 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/0.09501, allocations: 7.984 kB / 367.4 MB, free: 4.656 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000222/0.09524, allocations: 257.9 kB / 367.7 MB, free: 4.406 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09524, allocations: 0 / 367.7 MB, free: 4.406 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002661/0.09552, allocations: 36 kB / 367.7 MB, free: 4.371 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.001299/0.09682, allocations: 1.015 MB / 368.7 MB, free: 3.461 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001951/0.09703, allocations: 67.91 kB / 368.8 MB, free: 3.395 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.09704, allocations: 0 / 368.8 MB, free: 3.395 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.67e-05/0.09712, allocations: 31.92 kB / 368.8 MB, free: 3.363 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003831/0.09751, allocations: 64.48 kB / 368.9 MB, free: 3.297 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002283/0.09981, allocations: 2.257 MB / 371.1 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.1001, allocations: 0.7361 MB / 371.9 MB, free: 172 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.892e-05/0.1002, allocations: 37.78 kB / 371.9 MB, free: 136 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.628e-05/0.1003, allocations: 55.41 kB / 372 MB, free: 80 kB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1003, allocations: 0 / 372 MB, free: 80 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1552/0.2555, allocations: 4.766 MB / 376.7 MB, free: 18.41 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001696/0.2557, allocations: 262.8 kB / 377 MB, free: 18.15 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.733/1.989, allocations: 0 / 377 MB, free: 18.15 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