Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",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.001181/0.001181, allocations: 108.1 kB / 16.62 MB, free: 6.809 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.001268, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.544/1.544, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 50.95 kB / 300.2 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1286, allocations: 49.45 MB / 349.7 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.004533/0.1332, allocations: 1.936 MB / 351.6 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002248/0.1355, allocations: 1.033 MB / 352.7 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001822/0.1357, allocations: 3.938 kB / 352.7 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008936/0.1366, allocations: 141.7 kB / 352.8 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00033/0.137, allocations: 107.7 kB / 352.9 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006196/0.1376, allocations: 179 kB / 353.1 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002539/0.1379, allocations: 175.5 kB / 353.3 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.138, allocations: 41.52 kB / 353.3 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.1381, allocations: 79.59 kB / 353.4 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.1382, allocations: 71.69 kB / 353.4 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.495e-05/0.1383, allocations: 11.94 kB / 353.5 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00014/0.1384, allocations: 55.95 kB / 353.5 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.026e-05/0.1385, allocations: 47.78 kB / 353.6 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.999e-05/0.1386, allocations: 67.55 kB / 353.6 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002928/0.1389, allocations: 195.7 kB / 353.8 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1389, allocations: 3.938 kB / 353.8 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1389, allocations: 4 kB / 353.8 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.1389, allocations: 0 / 353.8 MB, free: 0.4922 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008089/0.1398, allocations: 0.504 MB / 354.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.1398, allocations: 12.03 kB / 354.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.874e-05/0.1399, allocations: 38.73 kB / 354.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.374e-05/0.1399, allocations: 20.75 kB / 354.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/0.1403, allocations: 262.7 kB / 354.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.1403, allocations: 4.375 kB / 354.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.856e-05/0.1403, allocations: 15.94 kB / 354.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003792/0.1407, allocations: 150.7 kB / 354.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.1407, allocations: 0 / 354.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.41e-05/0.1407, allocations: 0 / 354.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.1408, allocations: 0 / 354.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/0.1409, allocations: 39.92 kB / 354.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006174/0.1415, allocations: 358.4 kB / 355.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002554/0.1418, allocations: 115.9 kB / 355.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.519e-05/0.1419, allocations: 42.56 kB / 355.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.997e-05/0.1419, allocations: 4 kB / 355.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002092/0.1421, allocations: 83.31 kB / 355.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.1421, allocations: 0 / 355.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003923/0.1425, allocations: 137.4 kB / 355.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.1427, allocations: 136.5 kB / 355.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003189/0.143, allocations: 264.8 kB / 356 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.143, allocations: 33.95 kB / 356 MB, free: 14.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.1432, allocations: 116.1 kB / 356.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/0.1432, allocations: 15.75 kB / 356.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.027e-05/0.1433, allocations: 33.7 kB / 356.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.1434, allocations: 326.8 kB / 356.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.07e-05/0.1435, allocations: 19.98 kB / 356.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001116/0.1436, allocations: 73.94 kB / 356.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001377/0.1438, allocations: 72.22 kB / 356.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1438, allocations: 0 / 356.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002112/0.144, allocations: 121.4 kB / 356.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.144, allocations: 4 kB / 356.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.144, allocations: 4 kB / 356.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.1441, allocations: 0 / 356.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.416e-05/0.1441, allocations: 15.98 kB / 356.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.1442, allocations: 3.938 kB / 356.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.069e-05/0.1442, allocations: 19.78 kB / 356.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.937e-06/0.1443, allocations: 4 kB / 356.8 MB, free: 13.15 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.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 (11): * Single equations (assignments): 11 * 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.0001548/0.1444, allocations: 142.3 kB / 357 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.1446, allocations: 69.44 kB / 357 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.851e-05/0.1446, allocations: 21.72 kB / 357 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1446, allocations: 0 / 357 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.1446, allocations: 0 / 357 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.1447, allocations: 11.92 kB / 357.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002162/0.1449, allocations: 221.5 kB / 357.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1449, allocations: 0 / 357.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.544e-05/0.1449, allocations: 4 kB / 357.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.1449, allocations: 8.062 kB / 357.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/0.1449, allocations: 0 / 357.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.145, allocations: 0 / 357.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.145, allocations: 4 kB / 357.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002558/0.1452, allocations: 162.4 kB / 357.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.704e-05/0.1453, allocations: 100.9 kB / 357.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.493e-05/0.1454, allocations: 15.98 kB / 357.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.042e-05/0.1454, allocations: 4 kB / 357.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.831e-05/0.1455, allocations: 3.938 kB / 357.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/0.1455, allocations: 7.984 kB / 357.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001928/0.1457, allocations: 196.4 kB / 357.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1457, allocations: 0 / 357.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002763/0.146, allocations: 27.98 kB / 357.8 MB, free: 12.06 MB / 302.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: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,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 (9): * Single equations (assignments): 7 * 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.001606/0.1476, allocations: 1.01 MB / 358.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002351/0.1479, allocations: 63.91 kB / 358.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.1479, allocations: 8.25 kB / 358.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.088e-05/0.1479, allocations: 23.94 kB / 358.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004226/0.1484, allocations: 72.23 kB / 359 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002325/0.1507, allocations: 1.951 MB / 360.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003928/0.1511, allocations: 0.7358 MB / 361.7 MB, free: 8.172 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.982e-05/0.1512, allocations: 25.78 kB / 361.7 MB, free: 8.148 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.415e-05/0.1513, allocations: 47.42 kB / 361.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1513, allocations: 0 / 361.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02455/0.1759, allocations: 4.379 MB / 366.1 MB, free: 3.891 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003682/0.1763, allocations: 274.6 kB / 366.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.129/2.305, allocations: 0 / 366.4 MB, free: 3.555 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches