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.001348/0.001348, allocations: 109.6 kB / 16.62 MB, free: 6.812 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.001199/0.001198, allocations: 190 kB / 17.55 MB, free: 5.934 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.447/1.447, allocations: 222.9 MB / 241.2 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 55.14 kB / 300.2 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1109, allocations: 49.44 MB / 349.7 MB, free: 4.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.004019/0.115, allocations: 1.955 MB / 351.6 MB, free: 2.703 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001966/0.117, allocations: 1.134 MB / 352.8 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001828/0.1172, allocations: 7.938 kB / 352.8 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003372/0.1176, allocations: 59.8 kB / 352.8 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002953/0.1179, allocations: 87.7 kB / 352.9 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008354/0.1187, allocations: 234.8 kB / 353.2 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003317/0.1191, allocations: 175.5 kB / 353.3 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.1192, allocations: 41.52 kB / 353.4 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/0.1194, allocations: 79.64 kB / 353.4 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.1195, allocations: 91.59 kB / 353.5 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.551e-05/0.1195, allocations: 8 kB / 353.5 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001556/0.1197, allocations: 59.92 kB / 353.6 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.66e-05/0.1198, allocations: 55.83 kB / 353.7 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.1199, allocations: 83.41 kB / 353.7 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003494/0.1203, allocations: 243.5 kB / 354 MB, free: 372 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1203, allocations: 0 / 354 MB, free: 372 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1203, allocations: 0 / 354 MB, free: 372 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.1203, allocations: 0 / 354 MB, free: 372 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.0008085/0.1211, allocations: 0.5466 MB / 354.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.1212, allocations: 8.031 kB / 354.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.364e-05/0.1212, allocations: 42.73 kB / 354.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.846e-05/0.1213, allocations: 24.66 kB / 354.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003417/0.1216, allocations: 287.6 kB / 354.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.1217, allocations: 4.375 kB / 354.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.562e-05/0.1217, allocations: 11.94 kB / 354.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000452/0.1222, allocations: 188.2 kB / 355.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.1222, allocations: 0 / 355.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.1222, allocations: 8 kB / 355.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.1222, allocations: 0 / 355.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001262/0.1223, allocations: 47.89 kB / 355.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005623/0.1229, allocations: 395.2 kB / 355.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003287/0.1233, allocations: 142.5 kB / 355.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001703/0.1234, allocations: 59.42 kB / 355.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.549e-05/0.1235, allocations: 4.078 kB / 355.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003423/0.1239, allocations: 91.23 kB / 355.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 2.745e-06/0.1239, allocations: 0 / 355.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006043/0.1245, allocations: 165.2 kB / 356 MB, free: 14.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001464/0.1246, allocations: 192.3 kB / 356.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005862/0.1252, allocations: 338.6 kB / 356.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.701e-05/0.1253, allocations: 25.7 kB / 356.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.1255, allocations: 132.3 kB / 356.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.699e-05/0.1255, allocations: 23.73 kB / 356.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.1257, allocations: 33.7 kB / 356.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002138/0.1259, allocations: 330.8 kB / 357 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.126, allocations: 27.98 kB / 357 MB, free: 12.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.1263, allocations: 104.2 kB / 357.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002769/0.1265, allocations: 101.9 kB / 357.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.1266, allocations: 0 / 357.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004627/0.127, allocations: 145.3 kB / 357.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.887e-05/0.1271, allocations: 8 kB / 357.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/0.1271, allocations: 0 / 357.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.697e-05/0.1271, allocations: 4 kB / 357.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002052/0.1274, allocations: 19.98 kB / 357.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.732e-05/0.1274, allocations: 7.938 kB / 357.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001718/0.1276, allocations: 8.25 kB / 357.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.866e-05/0.1276, allocations: 12.03 kB / 357.5 MB, free: 12.49 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.0002609/0.1279, allocations: 157.8 kB / 357.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002093/0.1281, allocations: 81.34 kB / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.1282, allocations: 29.7 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.1282, allocations: 0 / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.1283, allocations: 4 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-06/0.1283, allocations: 3.938 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000416/0.1287, allocations: 245.5 kB / 358 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.1287, allocations: 7.938 kB / 358 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001301/0.1289, allocations: 19.92 kB / 358 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.1289, allocations: 96 / 358 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.569e-05/0.1289, allocations: 11.94 kB / 358 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.1289, allocations: 0 / 358 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.129, allocations: 0 / 358 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004805/0.1295, allocations: 179.3 kB / 358.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001976/0.1297, allocations: 120.8 kB / 358.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.928e-05/0.1297, allocations: 3.938 kB / 358.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.1299, allocations: 8 kB / 358.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.982e-05/0.13, allocations: 11.92 kB / 358.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.25e-05/0.13, allocations: 8 kB / 358.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000407/0.1304, allocations: 245.9 kB / 358.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1305, allocations: 0 / 358.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005501/0.131, allocations: 32 kB / 358.6 MB, free: 11.24 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.002404/0.1334, allocations: 1.055 MB / 359.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005592/0.134, allocations: 91.89 kB / 359.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.222e-05/0.1341, allocations: 0 / 359.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.1342, allocations: 31.92 kB / 359.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008741/0.1351, allocations: 76.83 kB / 359.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004921/0.1401, allocations: 2.317 MB / 362.2 MB, free: 7.656 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005566/0.1407, allocations: 0.7476 MB / 362.9 MB, free: 6.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002088/0.1409, allocations: 33.52 kB / 362.9 MB, free: 6.852 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001699/0.1411, allocations: 63.41 kB / 363 MB, free: 6.789 MB / 302.1 MB Notification: Performance of SimCode: time 1.664e-06/0.1411, allocations: 0 / 363 MB, free: 6.789 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0275/0.1686, allocations: 5.364 MB / 368.4 MB, free: 1.59 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003522/0.169, allocations: 257.3 kB / 368.6 MB, free: 1.297 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.17/2.339, allocations: 0 / 368.6 MB, free: 1.297 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