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.001291/0.001291, allocations: 116.5 kB / 18.5 MB, free: 4.566 MB / 14.72 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.001323/0.001323, allocations: 212.9 kB / 21.46 MB, free: 1.605 MB / 14.72 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 1.378/1.378, allocations: 230.2 MB / 254.5 MB, free: 15.41 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001735/0.001735, allocations: 63.89 kB / 373.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1028, allocations: 53.33 MB / 426.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003352/0.1062, allocations: 1.905 MB / 428.6 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.1083, allocations: 1.285 MB / 429.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.1084, allocations: 4 kB / 429.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000325/0.1087, allocations: 63.67 kB / 429.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003374/0.109, allocations: 139.4 kB / 430.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005849/0.1096, allocations: 225.9 kB / 430.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002488/0.1099, allocations: 175.6 kB / 430.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.11, allocations: 21.55 kB / 430.5 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.1101, allocations: 83.56 kB / 430.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001195/0.1102, allocations: 87.67 kB / 430.6 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.245e-05/0.1102, allocations: 8 kB / 430.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001426/0.1104, allocations: 67.95 kB / 430.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.58e-05/0.1105, allocations: 55.77 kB / 430.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.018e-05/0.1105, allocations: 79.42 kB / 430.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003309/0.1109, allocations: 235 kB / 431.1 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1109, allocations: 0 / 431.1 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1109, allocations: 4 kB / 431.1 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1109, allocations: 0 / 431.1 MB, free: 0.5859 MB / 350.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.0007697/0.1117, allocations: 0.5542 MB / 431.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.1117, allocations: 8.031 kB / 431.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.265e-05/0.1117, allocations: 38.75 kB / 431.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.804e-05/0.1118, allocations: 28.8 kB / 431.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004035/0.1122, allocations: 287.8 kB / 432 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.1122, allocations: 8.375 kB / 432 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.985e-05/0.1122, allocations: 4.375 kB / 432 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003367/0.1126, allocations: 163.6 kB / 432.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.1126, allocations: 0 / 432.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.1126, allocations: 0 / 432.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.1126, allocations: 4 kB / 432.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000109/0.1127, allocations: 31.98 kB / 432.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005345/0.1132, allocations: 398.3 kB / 432.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002445/0.1135, allocations: 115.9 kB / 432.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.533e-05/0.1136, allocations: 42.56 kB / 432.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.1136, allocations: 0 / 432.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001748/0.1138, allocations: 83.31 kB / 432.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.463e-06/0.1138, allocations: 4 kB / 432.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003809/0.1142, allocations: 153.4 kB / 433 MB, free: 14.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.1143, allocations: 162.2 kB / 433.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003415/0.1146, allocations: 330.7 kB / 433.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.1146, allocations: 33.7 kB / 433.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.723e-05/0.1147, allocations: 136.2 kB / 433.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.378e-05/0.1148, allocations: 19.91 kB / 433.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.272e-05/0.1148, allocations: 33.7 kB / 433.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.115, allocations: 334.8 kB / 434 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.744e-05/0.115, allocations: 23.98 kB / 434 MB, free: 13.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000114/0.1151, allocations: 86.84 kB / 434.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001481/0.1153, allocations: 84.22 kB / 434.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1153, allocations: 256 / 434.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002275/0.1155, allocations: 137.5 kB / 434.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.1155, allocations: 4 kB / 434.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1155, allocations: 0 / 434.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.1156, allocations: 4 kB / 434.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.1157, allocations: 19.98 kB / 434.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.403e-06/0.1157, allocations: 4 kB / 434.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.299e-05/0.1157, allocations: 7.938 kB / 434.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.1158, allocations: 7.938 kB / 434.4 MB, free: 12.93 MB / 366.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,subSample1.y,subSample1.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.0001417/0.1159, allocations: 161.8 kB / 434.5 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.126e-05/0.116, allocations: 73.45 kB / 434.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.504e-05/0.116, allocations: 25.7 kB / 434.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.116, allocations: 4 kB / 434.6 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.116, allocations: 0 / 434.6 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.116, allocations: 0 / 434.6 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002182/0.1163, allocations: 245.5 kB / 434.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1163, allocations: 0 / 434.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.774e-05/0.1163, allocations: 8 kB / 434.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.1163, allocations: 0 / 434.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.1163, allocations: 15.98 kB / 434.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1163, allocations: 0 / 434.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1163, allocations: 4 kB / 434.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002606/0.1166, allocations: 166.5 kB / 435.1 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.1167, allocations: 109 kB / 435.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.116e-05/0.1167, allocations: 4 kB / 435.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.81e-05/0.1168, allocations: 15.98 kB / 435.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.833e-05/0.1169, allocations: 7.984 kB / 435.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.1169, allocations: 4 kB / 435.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002403/0.1171, allocations: 245.9 kB / 435.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1171, allocations: 96 / 435.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002504/0.1174, allocations: 47.8 kB / 435.5 MB, free: 11.71 MB / 366.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,subSample1.y,sample1.y,subSample1.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.001922/0.1193, allocations: 1.009 MB / 436.5 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002162/0.1195, allocations: 71.89 kB / 436.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1195, allocations: 0 / 436.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.64e-05/0.1196, allocations: 36.17 kB / 436.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003716/0.12, allocations: 59.73 kB / 436.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/0.1224, allocations: 2.232 MB / 438.9 MB, free: 8.297 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000372/0.1228, allocations: 0.7397 MB / 439.6 MB, free: 7.531 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.686e-05/0.1229, allocations: 29.52 kB / 439.7 MB, free: 7.504 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.512e-05/0.123, allocations: 63.41 kB / 439.7 MB, free: 7.441 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.123, allocations: 3.938 kB / 439.7 MB, free: 7.438 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02757/0.1506, allocations: 5.342 MB / 445.1 MB, free: 2.184 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.843/7.994, allocations: 64 / 445.1 MB, free: 2.184 MB / 366.1 MB " [Timeout remaining time 652] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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] Reference file matches [Calling sys.exit(0), Time elapsed: 10.58356397273019]