Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.001645/0.001645, allocations: 118.6 kB / 18.5 MB, free: 4.434 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.001869/0.001869, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.384/1.384, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 59.91 kB / 373.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1046, allocations: 53.32 MB / 426.7 MB, free: 5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003405/0.108, allocations: 1.988 MB / 428.7 MB, free: 3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002237/0.1103, allocations: 1.355 MB / 430 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.1104, allocations: 3.938 kB / 430 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003522/0.1107, allocations: 79.58 kB / 430.1 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003645/0.1111, allocations: 143.4 kB / 430.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007611/0.1118, allocations: 266.2 kB / 430.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003092/0.1122, allocations: 219.4 kB / 430.7 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.1123, allocations: 40.23 kB / 430.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001425/0.1124, allocations: 103.5 kB / 430.8 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/0.1126, allocations: 107.5 kB / 430.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.129e-05/0.1126, allocations: 16 kB / 431 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001654/0.1128, allocations: 71.95 kB / 431 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.1129, allocations: 79.67 kB / 431.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.113, allocations: 91.36 kB / 431.2 MB, free: 452 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000417/0.1134, allocations: 294.8 kB / 431.5 MB, free: 156 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1134, allocations: 0 / 431.5 MB, free: 156 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1134, allocations: 0 / 431.5 MB, free: 156 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.1134, allocations: 4 kB / 431.5 MB, free: 152 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.1809/0.2944, allocations: 0.5951 MB / 432.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.2944, allocations: 9.375 kB / 432.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.427e-05/0.2945, allocations: 48.11 kB / 432.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.077e-05/0.2945, allocations: 32.39 kB / 432.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003512/0.2949, allocations: 316 kB / 432.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.2949, allocations: 15.47 kB / 432.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.496e-05/0.2949, allocations: 14.69 kB / 432.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005384/0.2955, allocations: 319 kB / 432.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.2955, allocations: 3.938 kB / 432.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.2955, allocations: 7.719 kB / 432.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.2955, allocations: 3.062 kB / 432.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001648/0.2957, allocations: 70.8 kB / 432.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000464/0.2961, allocations: 425 kB / 433.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003195/0.2965, allocations: 188.7 kB / 433.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.2966, allocations: 88.55 kB / 433.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.2966, allocations: 6.984 kB / 433.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000146/0.2968, allocations: 80.59 kB / 433.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.2968, allocations: 0 / 433.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004733/0.2972, allocations: 258.4 kB / 433.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.2973, allocations: 169.6 kB / 434.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002779/0.2976, allocations: 356.8 kB / 434.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.2976, allocations: 33.45 kB / 434.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.428e-05/0.2977, allocations: 135.1 kB / 434.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.648e-05/0.2977, allocations: 29.14 kB / 434.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.917e-05/0.2977, allocations: 56.62 kB / 434.7 MB, free: 9.988 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.806e-05/0.2978, allocations: 342.3 kB / 435 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.642e-05/0.2979, allocations: 41.92 kB / 435.1 MB, free: 9.672 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.298, allocations: 191.5 kB / 435.3 MB, free: 9.504 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/0.2982, allocations: 205.7 kB / 435.5 MB, free: 9.363 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2982, allocations: 6.594 kB / 435.5 MB, free: 9.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003219/0.2985, allocations: 231.3 kB / 435.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.2985, allocations: 9.578 kB / 435.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2986, allocations: 4.469 kB / 435.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.2986, allocations: 10.59 kB / 435.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.2987, allocations: 42.88 kB / 435.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.2987, allocations: 5.469 kB / 435.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.2988, allocations: 22.89 kB / 435.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.2988, allocations: 18.06 kB / 435.8 MB, free: 9.297 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001247/0.299, allocations: 171.8 kB / 436 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001751/0.2991, allocations: 144 kB / 436.1 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.23e-05/0.2992, allocations: 38.03 kB / 436.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.2992, allocations: 3.438 kB / 436.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.2992, allocations: 5 kB / 436.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.2992, allocations: 8.25 kB / 436.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000166/0.2994, allocations: 270.4 kB / 436.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2994, allocations: 1.062 kB / 436.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.2995, allocations: 34.86 kB / 436.5 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.2995, allocations: 2.219 kB / 436.5 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.2995, allocations: 5.266 kB / 436.5 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.2995, allocations: 2.188 kB / 436.5 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2995, allocations: 4 kB / 436.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000322/0.2999, allocations: 248.6 kB / 436.7 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.687e-05/0.2999, allocations: 127.9 kB / 436.8 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.859e-05/0.3, allocations: 8.25 kB / 436.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.004e-05/0.3001, allocations: 8.438 kB / 436.9 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.083e-05/0.3001, allocations: 12.23 kB / 436.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.3001, allocations: 10.45 kB / 436.9 MB, free: 8.613 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002073/0.3003, allocations: 258.5 kB / 437.1 MB, free: 8.484 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3003, allocations: 1.281 kB / 437.1 MB, free: 8.484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002972/0.3006, allocations: 47.78 kB / 437.2 MB, free: 8.473 MB / 350.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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.001944/0.3026, allocations: 1.194 MB / 438.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003123/0.3029, allocations: 148.6 kB / 438.5 MB, free: 7.645 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3029, allocations: 8.312 kB / 438.5 MB, free: 7.637 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.747e-05/0.303, allocations: 24.02 kB / 438.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004704/0.3035, allocations: 129 kB / 438.7 MB, free: 7.582 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002527/0.306, allocations: 2.718 MB / 441.4 MB, free: 5.672 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.3062, allocations: 0.7782 MB / 442.2 MB, free: 4.957 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.899e-05/0.3063, allocations: 35.16 kB / 442.2 MB, free: 4.949 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.3064, allocations: 76.45 kB / 442.3 MB, free: 4.898 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3064, allocations: 0 / 442.3 MB, free: 4.898 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02931/0.3357, allocations: 6.486 MB / 448.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.905/8.241, allocations: 5.094 kB / 448.8 MB, free: 3.938 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78784e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.686597852036357]