Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001914/0.001914, allocations: 123.2 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002231/0.002231, allocations: 186.9 kB / 20.73 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 51.91 kB / 365.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1092, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003314/0.1125, allocations: 1.962 MB / 419.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.1145, allocations: 1.219 MB / 421 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.1146, allocations: 7.938 kB / 421 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003199/0.115, allocations: 67.66 kB / 421 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002713/0.1152, allocations: 99.52 kB / 421.1 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008206/0.1161, allocations: 304.4 kB / 421.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002913/0.1163, allocations: 211.4 kB / 421.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.1165, allocations: 29.67 kB / 421.7 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000155/0.1166, allocations: 99.55 kB / 421.8 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.1168, allocations: 107.6 kB / 421.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.879e-05/0.1168, allocations: 12 kB / 421.9 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001663/0.117, allocations: 71.95 kB / 422 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.453e-05/0.1171, allocations: 71.69 kB / 422 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.1172, allocations: 95.34 kB / 422.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004114/0.1176, allocations: 298.8 kB / 422.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.1176, allocations: 0 / 422.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1176, allocations: 0 / 422.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.1176, allocations: 0 / 422.4 MB, free: 7.988 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009124/0.1185, allocations: 0.5931 MB / 423 MB, free: 7.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.1186, allocations: 11.97 kB / 423 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.775e-05/0.1186, allocations: 46.73 kB / 423.1 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.093e-05/0.1187, allocations: 32.75 kB / 423.1 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.1191, allocations: 311.7 kB / 423.4 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.1191, allocations: 8.375 kB / 423.4 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.322e-05/0.1192, allocations: 23.94 kB / 423.4 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005793/0.1197, allocations: 311.9 kB / 423.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.1197, allocations: 0 / 423.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.1198, allocations: 4 kB / 423.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.1198, allocations: 11.98 kB / 423.7 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001674/0.1199, allocations: 67.91 kB / 423.8 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006001/0.1205, allocations: 422.2 kB / 424.2 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003696/0.1209, allocations: 184 kB / 424.4 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.1211, allocations: 86.47 kB / 424.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.1211, allocations: 4 kB / 424.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001674/0.1213, allocations: 83.31 kB / 424.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.693e-06/0.1213, allocations: 0 / 424.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005456/0.1218, allocations: 257.5 kB / 424.8 MB, free: 5.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.1219, allocations: 166.2 kB / 425 MB, free: 5.133 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003715/0.1223, allocations: 350.9 kB / 425.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.445e-05/0.1223, allocations: 29.7 kB / 425.4 MB, free: 4.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.1224, allocations: 140.6 kB / 425.5 MB, free: 4.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.56e-05/0.1225, allocations: 31.84 kB / 425.5 MB, free: 4.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.063e-05/0.1226, allocations: 53.94 kB / 425.6 MB, free: 4.508 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1227, allocations: 334.8 kB / 425.9 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.266e-05/0.1228, allocations: 40.44 kB / 425.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.123, allocations: 195.6 kB / 426.1 MB, free: 3.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002922/0.1233, allocations: 215.2 kB / 426.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1233, allocations: 4 kB / 426.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004189/0.1237, allocations: 229.1 kB / 426.6 MB, free: 3.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.1237, allocations: 8.531 kB / 426.6 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1238, allocations: 8.344 kB / 426.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.1238, allocations: 11.98 kB / 426.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.1239, allocations: 47.86 kB / 426.6 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.1239, allocations: 12.25 kB / 426.7 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.124, allocations: 19.89 kB / 426.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.1241, allocations: 8 kB / 426.7 MB, free: 3.266 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.0001866/0.1242, allocations: 180.6 kB / 426.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002013/0.1244, allocations: 141.8 kB / 427 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.479e-05/0.1245, allocations: 37.75 kB / 427 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.535e-06/0.1245, allocations: 11.92 kB / 427.1 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1245, allocations: 0 / 427.1 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1245, allocations: 96 / 427.1 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002457/0.1248, allocations: 265.4 kB / 427.3 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1248, allocations: 0 / 427.3 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001217/0.1249, allocations: 35.92 kB / 427.3 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1249, allocations: 0 / 427.3 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.1249, allocations: 4 kB / 427.3 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.1249, allocations: 3.938 kB / 427.4 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1249, allocations: 4 kB / 427.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003825/0.1253, allocations: 242.5 kB / 427.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.1254, allocations: 128.8 kB / 427.7 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.877e-05/0.1255, allocations: 11.98 kB / 427.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.789e-05/0.1256, allocations: 7.938 kB / 427.7 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.696e-05/0.1256, allocations: 19.92 kB / 427.8 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.1256, allocations: 11.94 kB / 427.8 MB, free: 2.078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002475/0.1259, allocations: 249.9 kB / 428 MB, free: 1.836 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1259, allocations: 0 / 428 MB, free: 1.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000305/0.1262, allocations: 47.94 kB / 428.1 MB, free: 1.789 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.002291/0.1285, allocations: 1.188 MB / 429.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003445/0.1288, allocations: 152.5 kB / 429.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1288, allocations: 256 / 429.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.057e-05/0.1289, allocations: 35.92 kB / 429.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004862/0.1294, allocations: 125.3 kB / 429.6 MB, free: 440 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003534/0.1329, allocations: 2.695 MB / 432.3 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004208/0.1334, allocations: 0.7794 MB / 433 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001056/0.1335, allocations: 30.52 kB / 433.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.1336, allocations: 75.41 kB / 433.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of SimCode: time 4e-07/0.1336, allocations: 3.938 kB / 433.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05878/0.1924, allocations: 6.392 MB / 439.5 MB, free: 6.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.066/8.258, allocations: 4.875 kB / 439.5 MB, free: 6.336 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78784e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.921883597038686]