Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 123.2 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 186.9 kB / 20.73 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] 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.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 47.92 kB / 365.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08627/0.08771, allocations: 52.14 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003099/0.09081, allocations: 1.894 MB / 419.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00165/0.09246, allocations: 1.06 MB / 420.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.561e-05/0.09255, allocations: 3.938 kB / 420.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005222/0.09307, allocations: 143.5 kB / 420.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002748/0.09335, allocations: 119.5 kB / 421 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005013/0.09385, allocations: 200.7 kB / 421.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002367/0.09409, allocations: 183.5 kB / 421.4 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.534e-05/0.09418, allocations: 21.53 kB / 421.4 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001025/0.09428, allocations: 71.7 kB / 421.5 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.0944, allocations: 79.61 kB / 421.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.124e-05/0.09442, allocations: 8 kB / 421.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.09454, allocations: 59.95 kB / 421.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.007e-05/0.0946, allocations: 39.84 kB / 421.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.847e-05/0.09469, allocations: 71.55 kB / 421.7 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002908/0.09498, allocations: 215 kB / 421.9 MB, free: 8.484 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.09499, allocations: 0 / 421.9 MB, free: 8.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.09499, allocations: 0 / 421.9 MB, free: 8.484 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.09499, allocations: 0 / 421.9 MB, free: 8.484 MB / 350.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.000716/0.09571, allocations: 0.5116 MB / 422.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.09574, allocations: 8.031 kB / 422.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.166e-05/0.09578, allocations: 42.73 kB / 422.5 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.632e-05/0.09583, allocations: 20.8 kB / 422.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.09617, allocations: 274.9 kB / 422.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.09619, allocations: 4.375 kB / 422.8 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.0962, allocations: 11.92 kB / 422.8 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002883/0.09649, allocations: 146.7 kB / 422.9 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.0965, allocations: 0 / 422.9 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.09651, allocations: 4 kB / 422.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.09652, allocations: 4 kB / 422.9 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.73e-05/0.09662, allocations: 35.92 kB / 423 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004464/0.09706, allocations: 354.5 kB / 423.3 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002141/0.09728, allocations: 111.8 kB / 423.4 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.176e-05/0.09736, allocations: 46.56 kB / 423.5 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.09738, allocations: 7.984 kB / 423.5 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001453/0.09753, allocations: 71.34 kB / 423.5 MB, free: 6.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.392e-06/0.09753, allocations: 0 / 423.5 MB, free: 6.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003374/0.09787, allocations: 145.6 kB / 423.7 MB, free: 6.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.286e-05/0.09795, allocations: 128.5 kB / 423.8 MB, free: 6.316 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002747/0.09823, allocations: 268.9 kB / 424.1 MB, free: 6.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.09824, allocations: 25.7 kB / 424.1 MB, free: 6.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.087e-05/0.09833, allocations: 124 kB / 424.2 MB, free: 5.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.537e-05/0.09835, allocations: 19.83 kB / 424.2 MB, free: 5.863 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.021e-05/0.0984, allocations: 29.72 kB / 424.3 MB, free: 5.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.09854, allocations: 334.9 kB / 424.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.822e-05/0.09859, allocations: 20 kB / 424.6 MB, free: 5.473 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.475e-05/0.09869, allocations: 69.92 kB / 424.7 MB, free: 5.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001289/0.09882, allocations: 80.27 kB / 424.8 MB, free: 5.289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.09882, allocations: 0 / 424.8 MB, free: 5.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000201/0.09902, allocations: 109.5 kB / 424.9 MB, free: 5.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.09903, allocations: 7.938 kB / 424.9 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.09904, allocations: 4 kB / 424.9 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.09905, allocations: 128 / 424.9 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.806e-05/0.09913, allocations: 27.92 kB / 424.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.09913, allocations: 0 / 424.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.473e-05/0.0992, allocations: 11.89 kB / 424.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.09921, allocations: 4.312 kB / 424.9 MB, free: 5.121 MB / 350.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,subSample1.y,subSample1.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.0001253/0.09933, allocations: 146.5 kB / 425.1 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.082e-05/0.09941, allocations: 65.53 kB / 425.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.998e-05/0.09946, allocations: 25.7 kB / 425.2 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.09946, allocations: 4.062 kB / 425.2 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.09947, allocations: 0 / 425.2 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.09948, allocations: 7.938 kB / 425.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002075/0.09968, allocations: 225.6 kB / 425.4 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.09968, allocations: 0 / 425.4 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.957e-05/0.09971, allocations: 11.92 kB / 425.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.09972, allocations: 0 / 425.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.09973, allocations: 4 kB / 425.4 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.09973, allocations: 0 / 425.4 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.09973, allocations: 0 / 425.4 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002376/0.09997, allocations: 158.6 kB / 425.6 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.1001, allocations: 112.9 kB / 425.7 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.928e-05/0.1001, allocations: 8 kB / 425.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.286e-05/0.1002, allocations: 0 / 425.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.984e-05/0.1002, allocations: 11.92 kB / 425.7 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.1002, allocations: 8 kB / 425.7 MB, free: 4.238 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001845/0.1004, allocations: 200.5 kB / 425.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1004, allocations: 96 / 425.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002343/0.1006, allocations: 27.94 kB / 425.9 MB, free: 4.016 MB / 350.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,subSample1.y,sample1.y,subSample1.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.001798/0.1024, allocations: 1.013 MB / 426.9 MB, free: 3.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002045/0.1026, allocations: 67.84 kB / 427 MB, free: 3.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1026, allocations: 0 / 427 MB, free: 3.074 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.556e-05/0.1027, allocations: 23.98 kB / 427 MB, free: 3.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003694/0.1031, allocations: 53.03 kB / 427.1 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/0.1052, allocations: 1.925 MB / 429 MB, free: 0.957 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.1055, allocations: 0.728 MB / 429.7 MB, free: 208 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.026e-05/0.1056, allocations: 33.77 kB / 429.8 MB, free: 172 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.62e-05/0.1056, allocations: 51.34 kB / 429.8 MB, free: 120 kB / 350.1 MB Notification: Performance of SimCode: time 5e-07/0.1056, allocations: 0 / 429.8 MB, free: 120 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04207/0.1477, allocations: 4.58 MB / 434.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.889/8.037, allocations: 6.562 kB / 434.4 MB, free: 11.64 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.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.708408758044243]