Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001673/0.001673, allocations: 103.1 kB / 16.92 MB, free: 5.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002148/0.002147, allocations: 191.5 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009369/0.0009369, allocations: 47.42 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1056, allocations: 49.44 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.004422/0.1101, allocations: 1.911 MB / 352.1 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002214/0.1124, allocations: 1.149 MB / 353.2 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002172/0.1126, allocations: 7.938 kB / 353.2 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003847/0.113, allocations: 75.64 kB / 353.3 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004002/0.1134, allocations: 91.59 kB / 353.4 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009448/0.1144, allocations: 262.6 kB / 353.6 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003065/0.1147, allocations: 179.5 kB / 353.8 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.1149, allocations: 37.55 kB / 353.9 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.115, allocations: 71.64 kB / 353.9 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.1152, allocations: 87.61 kB / 354 MB, free: 464 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.717e-05/0.1152, allocations: 8 kB / 354 MB, free: 456 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002465/0.1155, allocations: 63.91 kB / 354.1 MB, free: 392 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.1156, allocations: 47.83 kB / 354.1 MB, free: 344 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.1157, allocations: 91.42 kB / 354.2 MB, free: 252 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004196/0.1161, allocations: 243.5 kB / 354.5 MB, free: 8 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1161, allocations: 0 / 354.5 MB, free: 8 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1162, allocations: 0 / 354.5 MB, free: 8 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.578e-06/0.1162, allocations: 3.938 kB / 354.5 MB, free: 4 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008757/0.1171, allocations: 0.5427 MB / 355 MB, free: 15.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.1171, allocations: 8.031 kB / 355 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.521e-05/0.1171, allocations: 42.73 kB / 355.1 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.542e-05/0.1172, allocations: 24.66 kB / 355.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003773/0.1176, allocations: 287.6 kB / 355.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.1176, allocations: 8.375 kB / 355.4 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.201e-05/0.1177, allocations: 7.938 kB / 355.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004319/0.1181, allocations: 184.3 kB / 355.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.1181, allocations: 8 kB / 355.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.1182, allocations: 0 / 355.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.1182, allocations: 0 / 355.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001286/0.1183, allocations: 43.91 kB / 355.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005789/0.1189, allocations: 403.1 kB / 356 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002702/0.1192, allocations: 138.5 kB / 356.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.1193, allocations: 59.42 kB / 356.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.118e-05/0.1193, allocations: 4 kB / 356.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002483/0.1196, allocations: 83.25 kB / 356.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 2.485e-06/0.1196, allocations: 0 / 356.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004511/0.1201, allocations: 173.2 kB / 356.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.1202, allocations: 191.9 kB / 356.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003781/0.1206, allocations: 330.6 kB / 357 MB, free: 13.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/0.1206, allocations: 33.7 kB / 357 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.401e-05/0.1207, allocations: 124.7 kB / 357.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/0.1208, allocations: 27.73 kB / 357.1 MB, free: 13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.956e-05/0.1208, allocations: 33.7 kB / 357.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.121, allocations: 330.8 kB / 357.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.517e-05/0.1211, allocations: 23.98 kB / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.1212, allocations: 108.5 kB / 357.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000176/0.1214, allocations: 93.94 kB / 357.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1214, allocations: 4 kB / 357.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003006/0.1217, allocations: 145.5 kB / 357.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.1217, allocations: 6.812 kB / 357.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1217, allocations: 8 kB / 357.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.1218, allocations: 0 / 357.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.1219, allocations: 23.98 kB / 357.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.1219, allocations: 0 / 357.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.081e-05/0.122, allocations: 16.12 kB / 357.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.122, allocations: 7.984 kB / 357.9 MB, free: 12.14 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001504/0.1222, allocations: 158.3 kB / 358.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.1223, allocations: 77.34 kB / 358.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.021e-05/0.1224, allocations: 33.64 kB / 358.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.1224, allocations: 4 kB / 358.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.877e-05/0.1224, allocations: 0 / 358.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1224, allocations: 8.031 kB / 358.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002342/0.1227, allocations: 249.6 kB / 358.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1227, allocations: 3.938 kB / 358.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.396e-05/0.1227, allocations: 15.98 kB / 358.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.1228, allocations: 0 / 358.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.88e-05/0.1228, allocations: 4 kB / 358.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.1228, allocations: 3.938 kB / 358.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-05/0.1228, allocations: 4 kB / 358.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002946/0.1231, allocations: 183.3 kB / 358.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.1232, allocations: 112.8 kB / 358.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.822e-05/0.1233, allocations: 8 kB / 358.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.851e-05/0.1234, allocations: 4 kB / 358.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.014e-05/0.1234, allocations: 15.92 kB / 358.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.1234, allocations: 4 kB / 358.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002698/0.1237, allocations: 253.9 kB / 359 MB, free: 10.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1237, allocations: 0 / 359 MB, free: 10.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002984/0.124, allocations: 36 kB / 359.1 MB, free: 10.88 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.001467/0.1255, allocations: 1.044 MB / 360.1 MB, free: 9.961 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002615/0.1258, allocations: 83.89 kB / 360.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1258, allocations: 0 / 360.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.518e-05/0.1259, allocations: 35.92 kB / 360.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004543/0.1264, allocations: 84.53 kB / 360.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002696/0.1291, allocations: 2.285 MB / 362.6 MB, free: 7.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.1294, allocations: 0.7437 MB / 363.4 MB, free: 6.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000102/0.1295, allocations: 29.53 kB / 363.4 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.741e-05/0.1296, allocations: 63.41 kB / 363.4 MB, free: 6.48 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1296, allocations: 0 / 363.4 MB, free: 6.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0233/0.1529, allocations: 5.482 MB / 368.9 MB, free: 1.133 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.265/8.418, allocations: 6.641 kB / 368.9 MB, free: 1.129 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches