Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009141/0.0009141, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001041/0.001041, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8938/0.8938, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 324.5 MB, free: 15.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.877e-05/2.059e-05, allocations: 3.125 kB / 324.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002281/0.002302, allocations: 1.881 MB / 326.4 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001415/0.003717, allocations: 1.207 MB / 327.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.003838, allocations: 7.938 kB / 327.6 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002878/0.004126, allocations: 67.59 kB / 327.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003316/0.004457, allocations: 135.4 kB / 327.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005142/0.004971, allocations: 226.2 kB / 328 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002165/0.005188, allocations: 187.4 kB / 328.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.005291, allocations: 29.72 kB / 328.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.005407, allocations: 99.67 kB / 328.3 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.617e-05/0.005503, allocations: 75.78 kB / 328.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.924e-05/0.005522, allocations: 8 kB / 328.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.005656, allocations: 67.94 kB / 328.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.09e-05/0.005727, allocations: 51.78 kB / 328.5 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.098e-05/0.005778, allocations: 47.84 kB / 328.6 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002837/0.006062, allocations: 251.1 kB / 328.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.006065, allocations: 0 / 328.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.006067, allocations: 0 / 328.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.88e-06/0.006072, allocations: 0 / 328.8 MB, free: 11.43 MB / 298.7 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.0005696/0.006641, allocations: 466.6 kB / 329.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.006681, allocations: 11.98 kB / 329.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.016e-05/0.006711, allocations: 42.73 kB / 329.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.281e-05/0.006754, allocations: 20.8 kB / 329.4 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003016/0.007055, allocations: 244.6 kB / 329.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.007068, allocations: 384 / 329.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.274e-05/0.00709, allocations: 12.38 kB / 329.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002735/0.007364, allocations: 177 kB / 329.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.007371, allocations: 192 / 329.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.007382, allocations: 4.125 kB / 329.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.007386, allocations: 0 / 329.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.752e-05/0.007463, allocations: 51.91 kB / 329.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003876/0.007851, allocations: 333.6 kB / 330.2 MB, free: 9.949 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001596/0.008011, allocations: 123.8 kB / 330.3 MB, free: 9.801 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.57e-05/0.008066, allocations: 38.56 kB / 330.3 MB, free: 9.754 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.188e-05/0.008088, allocations: 7.938 kB / 330.3 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001254/0.008213, allocations: 79.38 kB / 330.4 MB, free: 9.656 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.008215, allocations: 0 / 330.4 MB, free: 9.656 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002586/0.008473, allocations: 161.4 kB / 330.6 MB, free: 9.492 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.928e-05/0.008533, allocations: 136.5 kB / 330.7 MB, free: 9.328 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002288/0.008761, allocations: 341.8 kB / 331 MB, free: 8.984 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.008775, allocations: 25.7 kB / 331 MB, free: 8.953 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.834e-05/0.008843, allocations: 132.1 kB / 331.2 MB, free: 8.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.311e-05/0.008867, allocations: 19.84 kB / 331.2 MB, free: 8.801 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.794e-05/0.008904, allocations: 25.7 kB / 331.2 MB, free: 8.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.125e-05/0.008986, allocations: 330.8 kB / 331.5 MB, free: 8.438 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.944e-05/0.009035, allocations: 24.23 kB / 331.6 MB, free: 8.414 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.006e-05/0.009105, allocations: 118.8 kB / 331.7 MB, free: 8.273 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.879e-05/0.009184, allocations: 65.58 kB / 331.7 MB, free: 8.203 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.009186, allocations: 3.938 kB / 331.8 MB, free: 8.199 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001215/0.009307, allocations: 105.5 kB / 331.9 MB, free: 8.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.00932, allocations: 4 kB / 331.9 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.009325, allocations: 3.984 kB / 331.9 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.009338, allocations: 4 kB / 331.9 MB, free: 8.078 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.361e-05/0.009402, allocations: 11.94 kB / 331.9 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.009407, allocations: 4.219 kB / 331.9 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.87e-05/0.009446, allocations: 11.98 kB / 331.9 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.009453, allocations: 8.297 kB / 331.9 MB, free: 8.043 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 9.385e-05/0.009547, allocations: 149.8 kB / 332.1 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.255e-05/0.009599, allocations: 73.48 kB / 332.1 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001712/0.00977, allocations: 127.5 kB / 332.2 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.009773, allocations: 0 / 332.2 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.009777, allocations: 0 / 332.2 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.009781, allocations: 4 kB / 332.3 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001367/0.009918, allocations: 208.6 kB / 332.5 MB, free: 7.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.00992, allocations: 0 / 332.5 MB, free: 7.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.38e-05/0.009964, allocations: 19.92 kB / 332.5 MB, free: 7.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.009965, allocations: 0 / 332.5 MB, free: 7.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.009976, allocations: 7.984 kB / 332.5 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.009977, allocations: 0 / 332.5 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.009978, allocations: 0 / 332.5 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001565/0.01013, allocations: 174.5 kB / 332.7 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.075e-05/0.01019, allocations: 39.78 kB / 332.7 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.01021, allocations: 7.984 kB / 332.7 MB, free: 7.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.989e-05/0.01024, allocations: 8 kB / 332.7 MB, free: 7.152 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.051e-05/0.01028, allocations: 7.984 kB / 332.7 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.01029, allocations: 4.094 kB / 332.7 MB, free: 7.141 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001645/0.01045, allocations: 257.1 kB / 333 MB, free: 6.891 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01045, allocations: 0 / 333 MB, free: 6.891 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001743/0.01063, allocations: 31.94 kB / 333 MB, free: 6.859 MB / 298.7 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,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.001019/0.01165, allocations: 1.045 MB / 334 MB, free: 5.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001574/0.01181, allocations: 71.91 kB / 334.1 MB, free: 5.859 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.01181, allocations: 0 / 334.1 MB, free: 5.859 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.857e-05/0.01186, allocations: 35.91 kB / 334.2 MB, free: 5.824 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002887/0.01214, allocations: 68.66 kB / 334.2 MB, free: 5.762 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001841/0.01399, allocations: 2.183 MB / 336.4 MB, free: 3.465 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.723e-05/0.01407, allocations: 132.2 kB / 336.5 MB, free: 3.316 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.182e-05/0.01414, allocations: 25.62 kB / 336.6 MB, free: 3.293 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.794e-05/0.01422, allocations: 64.47 kB / 336.6 MB, free: 3.23 MB / 298.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01422, allocations: 0 / 336.6 MB, free: 3.23 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02073/0.03496, allocations: 6.166 MB / 342.8 MB, free: 13.1 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.842/6.877, allocations: 4.062 kB / 342.8 MB, free: 13.09 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,subSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,subSample1.factor,subSample1.inferFactor,subSample1.u,subSample1.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 [Calling sys.exit(0), Time elapsed: 8.55186491087079]