Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.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.BooleanSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",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.001243/0.001242, allocations: 102.8 kB / 16.5 MB, free: 6.707 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.001269/0.001269, allocations: 190.6 kB / 17.43 MB, free: 6.066 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.504/1.504, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001058/0.001059, allocations: 43.19 kB / 300.1 MB, free: 5.977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1249, allocations: 49.45 MB / 349.5 MB, free: 4.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.003407/0.1283, allocations: 1.941 MB / 351.5 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001785/0.1302, allocations: 1.056 MB / 352.5 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.1303, allocations: 0 / 352.5 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005866/0.1309, allocations: 144.2 kB / 352.7 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002648/0.1312, allocations: 99.69 kB / 352.8 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005609/0.1318, allocations: 189 kB / 352.9 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002212/0.132, allocations: 187.4 kB / 353.1 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.1321, allocations: 29.55 kB / 353.1 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.1322, allocations: 59.72 kB / 353.2 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/0.1324, allocations: 75.56 kB / 353.3 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.618e-05/0.1324, allocations: 12 kB / 353.3 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001489/0.1326, allocations: 51.95 kB / 353.3 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.754e-05/0.1326, allocations: 39.84 kB / 353.4 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.395e-05/0.1327, allocations: 71.48 kB / 353.5 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002454/0.133, allocations: 203.6 kB / 353.6 MB, free: 372 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.133, allocations: 0 / 353.6 MB, free: 372 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.133, allocations: 0 / 353.6 MB, free: 372 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.133, allocations: 0 / 353.6 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.0007708/0.1338, allocations: 0.5157 MB / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.1338, allocations: 12.03 kB / 354.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.969e-05/0.1339, allocations: 38.75 kB / 354.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.096e-05/0.1339, allocations: 24.66 kB / 354.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.1342, allocations: 266.8 kB / 354.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.1343, allocations: 8.375 kB / 354.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.767e-05/0.1343, allocations: 11.92 kB / 354.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003418/0.1346, allocations: 167.2 kB / 354.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.1347, allocations: 0 / 354.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.1347, allocations: 7.938 kB / 354.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.1347, allocations: 7.938 kB / 354.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001155/0.1348, allocations: 31.98 kB / 354.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005438/0.1354, allocations: 454.4 kB / 355.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002492/0.1356, allocations: 130.5 kB / 355.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.1358, allocations: 63.34 kB / 355.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.1358, allocations: 4 kB / 355.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/0.136, allocations: 93.05 kB / 355.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.302e-06/0.136, allocations: 3.938 kB / 355.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003909/0.1364, allocations: 153.4 kB / 355.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001432/0.1365, allocations: 162.5 kB / 355.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002816/0.1368, allocations: 272.9 kB / 356 MB, free: 13.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.1369, allocations: 29.7 kB / 356.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.137, allocations: 120.4 kB / 356.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.03e-05/0.137, allocations: 23.78 kB / 356.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.398e-05/0.1371, allocations: 29.72 kB / 356.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1372, allocations: 330.8 kB / 356.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.922e-05/0.1373, allocations: 23.98 kB / 356.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.1374, allocations: 74.86 kB / 356.7 MB, free: 13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.1375, allocations: 89.11 kB / 356.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1375, allocations: 3.938 kB / 356.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002413/0.1378, allocations: 129.4 kB / 356.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.1378, allocations: 4 kB / 356.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1378, allocations: 0 / 356.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/0.1379, allocations: 4 kB / 356.9 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.79e-05/0.138, allocations: 16.45 kB / 356.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.627e-06/0.138, allocations: 4 kB / 356.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.023e-05/0.1381, allocations: 19.78 kB / 356.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.1381, allocations: 8 kB / 356.9 MB, free: 12.71 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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,shiftSample1.y,hold1.y,hold1.u,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.0001574/0.1383, allocations: 145.8 kB / 357.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.847e-05/0.1384, allocations: 61.5 kB / 357.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.915e-05/0.1384, allocations: 25.7 kB / 357.2 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.1384, allocations: 7.938 kB / 357.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.1384, allocations: 4.062 kB / 357.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1385, allocations: 3.938 kB / 357.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000252/0.1387, allocations: 233.5 kB / 357.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.1387, allocations: 0 / 357.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.591e-05/0.1388, allocations: 4 kB / 357.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1388, allocations: 4 kB / 357.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.1388, allocations: 0 / 357.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1388, allocations: 4 kB / 357.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.1388, allocations: 3.984 kB / 357.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002759/0.1391, allocations: 179.2 kB / 357.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.1392, allocations: 116.7 kB / 357.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.35e-05/0.1392, allocations: 4 kB / 357.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.348e-05/0.1393, allocations: 4 kB / 357.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.768e-05/0.1394, allocations: 11.92 kB / 357.7 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.1394, allocations: 12 kB / 357.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000173/0.1396, allocations: 196.5 kB / 357.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1396, allocations: 0 / 357.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002664/0.1398, allocations: 32 kB / 358 MB, free: 11.56 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,hold1.y,hold1.u,shiftSample1.y,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.001453/0.1413, allocations: 1.024 MB / 359 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002363/0.1416, allocations: 75.86 kB / 359.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1416, allocations: 3.938 kB / 359.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.838e-05/0.1417, allocations: 28.3 kB / 359.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004388/0.1421, allocations: 72.41 kB / 359.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002574/0.1447, allocations: 2.025 MB / 361.2 MB, free: 8.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/0.1451, allocations: 0.7283 MB / 361.9 MB, free: 7.566 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.503e-05/0.1452, allocations: 33.72 kB / 361.9 MB, free: 7.535 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.803e-05/0.1453, allocations: 43.42 kB / 362 MB, free: 7.492 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1453, allocations: 0 / 362 MB, free: 7.492 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01904/0.1644, allocations: 4.409 MB / 366.4 MB, free: 3.223 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005023/0.165, allocations: 249.7 kB / 366.6 MB, free: 2.969 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.095/2.26, allocations: 0 / 366.6 MB, free: 2.969 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches