Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001541/0.001541, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.423/1.423, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 51.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1034, allocations: 53.33 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003675/0.1071, allocations: 1.938 MB / 428.2 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002153/0.1093, allocations: 1.251 MB / 429.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.1094, allocations: 11.88 kB / 429.5 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006077/0.11, allocations: 147.5 kB / 429.7 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003928/0.1104, allocations: 159.4 kB / 429.8 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004704/0.1109, allocations: 179.2 kB / 430 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000282/0.1111, allocations: 195.4 kB / 430.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.1113, allocations: 25.67 kB / 430.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001331/0.1114, allocations: 87.62 kB / 430.3 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/0.1115, allocations: 91.48 kB / 430.4 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.451e-05/0.1115, allocations: 11.98 kB / 430.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.1117, allocations: 51.98 kB / 430.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.873e-05/0.1117, allocations: 51.83 kB / 430.5 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.637e-05/0.1118, allocations: 79.47 kB / 430.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003338/0.1122, allocations: 226.9 kB / 430.8 MB, free: 296 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1122, allocations: 0 / 430.8 MB, free: 296 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1122, allocations: 0 / 430.8 MB, free: 296 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.1122, allocations: 0 / 430.8 MB, free: 296 kB / 350.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.1814/0.2936, allocations: 0.5266 MB / 431.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.2937, allocations: 8.031 kB / 431.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.31e-05/0.2937, allocations: 41.03 kB / 431.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.012e-05/0.2938, allocations: 24.08 kB / 431.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003617/0.2941, allocations: 280.5 kB / 431.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.2942, allocations: 8.781 kB / 431.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.837e-05/0.2942, allocations: 5.047 kB / 431.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003778/0.2946, allocations: 167.8 kB / 431.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.2946, allocations: 4.656 kB / 431.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.2946, allocations: 3.219 kB / 431.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.2946, allocations: 3.438 kB / 431.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001167/0.2947, allocations: 40.39 kB / 431.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004806/0.2952, allocations: 379.3 kB / 432.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002336/0.2954, allocations: 129 kB / 432.4 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.2955, allocations: 55.52 kB / 432.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.27e-05/0.2955, allocations: 9.109 kB / 432.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001573/0.2957, allocations: 75.42 kB / 432.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.333e-06/0.2957, allocations: 0.5 kB / 432.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004167/0.2961, allocations: 163.5 kB / 432.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.238e-05/0.2962, allocations: 160.9 kB / 432.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002979/0.2965, allocations: 281.9 kB / 433.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.2965, allocations: 27.58 kB / 433.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.319e-05/0.2966, allocations: 124.9 kB / 433.3 MB, free: 9.977 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.536e-05/0.2966, allocations: 21.92 kB / 433.3 MB, free: 9.969 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.151e-05/0.2967, allocations: 33.09 kB / 433.3 MB, free: 9.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.53e-05/0.2967, allocations: 335 kB / 433.6 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.583e-05/0.2968, allocations: 24.22 kB / 433.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.84e-05/0.2969, allocations: 80.53 kB / 433.7 MB, free: 9.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.297, allocations: 97.69 kB / 433.8 MB, free: 9.512 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.297, allocations: 0.6875 kB / 433.8 MB, free: 9.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002238/0.2973, allocations: 130.2 kB / 434 MB, free: 9.469 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.2973, allocations: 5.844 kB / 434 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.2973, allocations: 8.984 kB / 434 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.2973, allocations: 1.031 kB / 434 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.748e-05/0.2974, allocations: 18.78 kB / 434 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.2974, allocations: 2.844 kB / 434 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.304e-05/0.2975, allocations: 9.281 kB / 434 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.2975, allocations: 11.05 kB / 434 MB, free: 9.469 MB / 350.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,sample1.u,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.0001114/0.2976, allocations: 150.1 kB / 434.2 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.324e-05/0.2977, allocations: 77.22 kB / 434.2 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.502e-05/0.2977, allocations: 25.03 kB / 434.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.2977, allocations: 7.312 kB / 434.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.2977, allocations: 3.781 kB / 434.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.2978, allocations: 6.328 kB / 434.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000175/0.2979, allocations: 234.5 kB / 434.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2979, allocations: 1.031 kB / 434.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.804e-05/0.298, allocations: 7.719 kB / 434.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.298, allocations: 2.188 kB / 434.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.298, allocations: 7.562 kB / 434.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.298, allocations: 1.875 kB / 434.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.298, allocations: 2.156 kB / 434.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002628/0.2982, allocations: 176.9 kB / 434.7 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.421e-05/0.2983, allocations: 112.4 kB / 434.8 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.106e-05/0.2983, allocations: 2.219 kB / 434.8 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.63e-05/0.2984, allocations: 9.953 kB / 434.8 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.352e-05/0.2985, allocations: 7.781 kB / 434.8 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.2985, allocations: 5.844 kB / 434.8 MB, free: 8.898 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001685/0.2986, allocations: 208.3 kB / 435.1 MB, free: 8.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2986, allocations: 1.125 kB / 435.1 MB, free: 8.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002637/0.2989, allocations: 30.86 kB / 435.1 MB, free: 8.816 MB / 350.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,sample1.u,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.001812/0.3007, allocations: 1.027 MB / 436.1 MB, free: 8.125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000206/0.3009, allocations: 84.36 kB / 436.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3009, allocations: 1.062 kB / 436.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.479e-05/0.301, allocations: 28.52 kB / 436.2 MB, free: 8.105 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00043/0.3014, allocations: 74.73 kB / 436.3 MB, free: 8.098 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/0.3035, allocations: 2.055 MB / 438.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001798/0.3037, allocations: 0.7339 MB / 439.1 MB, free: 5.945 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.633e-05/0.3038, allocations: 27.75 kB / 439.1 MB, free: 5.941 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.663e-05/0.3038, allocations: 55.81 kB / 439.2 MB, free: 5.906 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3038, allocations: 1.156 kB / 439.2 MB, free: 5.906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02875/0.3326, allocations: 5.025 MB / 444.2 MB, free: 5.062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.873/8.205, allocations: 6.203 kB / 444.2 MB, free: 5.059 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.644379378994927]