Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 114.3 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 219 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.431/1.431, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 51.91 kB / 373.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.106, allocations: 53.32 MB / 427 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.003221/0.1093, allocations: 1.773 MB / 428.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.1104, allocations: 0.6115 MB / 429.4 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.602e-05/0.1105, allocations: 7.938 kB / 429.4 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.715e-05/0.1106, allocations: 7.875 kB / 429.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000149/0.1107, allocations: 19.84 kB / 429.4 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004582/0.1112, allocations: 99.7 kB / 429.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001654/0.1114, allocations: 99.69 kB / 429.6 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.1115, allocations: 17.45 kB / 429.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.1116, allocations: 51.83 kB / 429.7 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.524e-05/0.1117, allocations: 39.78 kB / 429.7 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.264e-05/0.1117, allocations: 8 kB / 429.8 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.439e-05/0.1118, allocations: 12 kB / 429.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.125e-05/0.1118, allocations: 31.83 kB / 429.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.648e-05/0.1119, allocations: 51.67 kB / 429.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002214/0.1121, allocations: 115.4 kB / 430 MB, free: 1.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1121, allocations: 7.938 kB / 430 MB, free: 1.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1121, allocations: 0 / 430 MB, free: 1.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.1121, allocations: 0 / 430 MB, free: 1.789 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0006161/0.1127, allocations: 430.8 kB / 430.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.1128, allocations: 8.031 kB / 430.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.388e-05/0.1128, allocations: 4.188 kB / 430.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.293e-05/0.1128, allocations: 46.73 kB / 430.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.113, allocations: 28.83 kB / 430.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003036/0.1133, allocations: 220.1 kB / 430.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.1133, allocations: 12.38 kB / 430.7 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.225e-05/0.1133, allocations: 8.375 kB / 430.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004996/0.1138, allocations: 273 kB / 431 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1138, allocations: 0 / 431 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.1139, allocations: 4 kB / 431 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.1139, allocations: 8 kB / 431 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001444/0.114, allocations: 59.84 kB / 431 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003896/0.1144, allocations: 302.5 kB / 431.3 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002508/0.1147, allocations: 127.7 kB / 431.5 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.1148, allocations: 70.78 kB / 431.5 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.1148, allocations: 4.141 kB / 431.5 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.648e-05/0.1149, allocations: 38.56 kB / 431.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.332e-06/0.1149, allocations: 4 kB / 431.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004251/0.1153, allocations: 173.4 kB / 431.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.1154, allocations: 114.8 kB / 431.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001571/0.1156, allocations: 154.2 kB / 432 MB, free: 15.49 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.1156, allocations: 29.7 kB / 432 MB, free: 15.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.99e-05/0.1156, allocations: 92.14 kB / 432.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.866e-05/0.1157, allocations: 24.38 kB / 432.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.74e-05/0.1157, allocations: 41.7 kB / 432.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1159, allocations: 326.7 kB / 432.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.957e-05/0.116, allocations: 27.98 kB / 432.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.1161, allocations: 140.8 kB / 432.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000236/0.1164, allocations: 174.3 kB / 432.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1164, allocations: 0 / 432.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002969/0.1166, allocations: 177.2 kB / 433 MB, free: 14.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.856e-05/0.1167, allocations: 10.19 kB / 433 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.1167, allocations: 7.938 kB / 433 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.1167, allocations: 4.531 kB / 433 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.1168, allocations: 31.98 kB / 433.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.341e-05/0.1168, allocations: 15.88 kB / 433.1 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.34e-05/0.1169, allocations: 4 kB / 433.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.1169, allocations: 16 kB / 433.1 MB, free: 14.26 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 ($CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * 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 (21): * Single equations (assignments): 21 * 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.0001241/0.1171, allocations: 141.7 kB / 433.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002058/0.1173, allocations: 117.8 kB / 433.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.104e-05/0.1173, allocations: 16.72 kB / 433.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.1173, allocations: 4 kB / 433.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.1173, allocations: 3.938 kB / 433.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.1173, allocations: 4 kB / 433.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002397/0.1176, allocations: 197.6 kB / 433.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1176, allocations: 0 / 433.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.1177, allocations: 27.92 kB / 433.6 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.1177, allocations: 7.938 kB / 433.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.1177, allocations: 7.984 kB / 433.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.1177, allocations: 4 kB / 433.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1177, allocations: 3.938 kB / 433.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003463/0.1181, allocations: 253.1 kB / 433.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.351e-05/0.1182, allocations: 108.9 kB / 434 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.658e-05/0.1182, allocations: 11.94 kB / 434 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.278e-05/0.1183, allocations: 4 kB / 434 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.8e-05/0.1183, allocations: 3.938 kB / 434 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-06/0.1183, allocations: 4 kB / 434 MB, free: 13.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001024/0.1184, allocations: 128.1 kB / 434.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1184, allocations: 0 / 434.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002839/0.1187, allocations: 20 kB / 434.2 MB, free: 13.1 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: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * 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 (17): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 0.0007958/0.1195, allocations: 0.8429 MB / 435 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002644/0.1198, allocations: 106.4 kB / 435.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1198, allocations: 0 / 435.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.878e-05/0.1198, allocations: 9.062 kB / 435.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004598/0.1203, allocations: 79.84 kB / 435.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002027/0.1223, allocations: 1.877 MB / 437.1 MB, free: 9.969 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003679/0.1227, allocations: 0.7163 MB / 437.8 MB, free: 9.227 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.576e-05/0.1227, allocations: 9.422 kB / 437.8 MB, free: 9.215 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.989e-05/0.1228, allocations: 35.42 kB / 437.8 MB, free: 9.184 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1228, allocations: 4 kB / 437.8 MB, free: 9.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01952/0.1423, allocations: 2.816 MB / 440.7 MB, free: 6.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.911/8.054, allocations: 12.36 kB / 440.7 MB, free: 6.488 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78998e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,upSample1.y,upSample2.y,add.y Variables in the result:add.k1,add.k2,add.u1,add.u2,add.y,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(upSample1.b),previous(upSample1.b_super),previous(upSample2.b),previous(upSample2.b_super),sample1.u,sample1.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,upSample1.b,upSample1.b_super,upSample1.factor,upSample1.inferFactor,upSample1.u,upSample1.y,upSample2.b,upSample2.b_super,upSample2.factor,upSample2.inferFactor,upSample2.u,upSample2.y [Calling sys.exit(0), Time elapsed: 10.679017764981836]